Ozkan Sezer
c6792f78df
look for clock_gettime() in libc first, then in librt if not found.
2023-02-13 11:23:12 -08:00
Ozkan Sezer
272010b612
cmake: really fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:56:10 +03:00
Ozkan Sezer
f7f61af12b
cmake: fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:55:40 +03:00
Ozkan Sezer
ae91dcbcf4
fix dynapi after commit dc74a67a
2023-02-09 22:50:00 +03:00
Ozkan Sezer
7f3036c353
make sure to not enable SDL_PASSED_BEGINTHREAD_ENDTHREAD for WinRT
2023-02-07 00:22:37 +03:00
Ozkan Sezer
b82a8b76b1
windows/SDL_systhread.c: remove some dead code.
2023-02-07 00:22:20 +03:00
Ozkan Sezer
e1d79b418c
fix build error due to -Wshadow
2023-02-05 20:45:02 +03:00
Ozkan Sezer
02fbf2cf99
replaced line comments in public header.
2023-02-04 10:02:10 +03:00
Ozkan Sezer
9f21bed729
dynapi: cast GetProcAddress() result to void*
2023-02-03 17:40:40 +03:00
Ozkan Sezer
e7ea47a1b4
add version check to SDL_MALLOC macro (for correctness)
2023-02-03 17:40:40 +03:00
Ozkan Sezer
b462027c53
SDL_test_common.c: minor warning fix (SDL_AudioDeviceID is unsigned)
2023-01-26 22:05:47 +03:00
Ozkan Sezer
742e356180
test/loopwavequeue.c: minor warning fix (SDL_AudioDeviceID is unsigned)
2023-01-26 18:15:20 +03:00
Ozkan Sezer
be2afeec84
SDL_loadso.h: add missing SDLCALL to SDL_LoadFunction()
2023-01-26 18:01:10 +03:00
Ozkan Sezer
3bf86c0eca
cmake: addititonal check for visibility attributes.
...
makes sure to detect unsupported configurations especially with new gcc
versions.
2023-01-26 01:32:32 +03:00
Ozkan Sezer
58e8cf599c
README-migration.md: fix SDL_WINDOWEVENT_CLOSE renamed name.
...
SDL_EVENT_WINDOW_CLOSE_REQUESTED, not SDL_EVENT_WINDOW_CLOSE.
2023-01-24 20:05:50 +03:00
Ozkan Sezer
2ec9a20204
SDL_dynapi.c: add extern "C" guards, just in case..
2023-01-12 14:01:32 +03:00
Ozkan Sezer
30516fd3a6
joystick/vita: add some sanity check to SDL_GetJoystickInstanceID result
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
f046788a5a
joystick/vita: fix index value use returned by SDL_GetJoystickInstanceID
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
85924687fd
fix SDL_GetSensorInstanceID() return code upon failure.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
0621a67350
fix SDL_GetJoystickInstanceID() return code upon failure
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
0d8c22acd2
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:37 +03:00
Ozkan Sezer
d4f7b0aa0e
cmake: added missing INTERFACE to target_compile_definitions
2023-01-08 19:41:32 +03:00
Ozkan Sezer
ca541789ea
cmake: check for math library functions even in the absence of libm
...
(Reference issue: https://github.com/libsdl-org/SDL/issues/7011 )
2023-01-07 14:25:04 +03:00
Ozkan Sezer
5ea06f487d
cmake: fix detection of library functions when -Werror is enabled.
...
(Reference issue: https://github.com/libsdl-org/SDL/issues/7011 )
2023-01-07 14:25:04 +03:00
Ozkan Sezer
0f9b923ff4
cmake: fix detection of math library functions.
...
Fixes https://github.com/libsdl-org/SDL/issues/7011
2023-01-07 14:25:04 +03:00
Ozkan Sezer
321c30db57
windows: more HANDLE -> HMODULE changes.
2022-12-31 08:00:00 +03:00
Ozkan Sezer
929da2c28e
SDL_dynapi.c: LoadLibraryA() returns HMODULE.
2022-12-30 11:11:10 +03:00
Ozkan Sezer
29ba5f5d64
SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32
2022-12-27 00:10:00 +03:00
Ozkan Sezer
1230a8fde8
fix (hopefully) MSVC builds after gesture removal.
2022-12-14 00:50:20 +03:00
Ozkan Sezer
ed6d401616
gendynapi.pl: fix "Use of uninitialized value $7" after commit 0f9482e.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/6740 .
2022-12-05 20:29:56 +03:00
Ozkan Sezer
4a22ee7277
tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros
2022-12-05 00:35:20 +03:00
Ozkan Sezer
d6327a00fb
re-applied the SDL_NewAudioStream deconstification, including to its definition
...
we should keep this to SDL3 only.
2022-12-04 20:50:20 +03:00
Ozkan Sezer
25e62193f4
just revert the const removal from SDL_NewAudioStream in commit d0bbfdb
2022-12-04 12:56:50 +03:00
Ozkan Sezer
202eaeea11
replace windows timeapi.h with mmsystem.h for better compatibility.
2022-12-04 12:50:04 +03:00
Ozkan Sezer
36a43eac00
apply const removal changes from SDL_NewAudioStream to dynapi side too.
2022-12-04 12:47:20 +03:00
Ozkan Sezer
0f9482ebc3
reran gendynapi.pl to add SDL_GetTicksNS / SDL_DelayNS to SDL_dynapi.sym
2022-12-03 00:33:50 +03:00
Ozkan Sezer
a3d7dd2464
SDL_sysfilesystem.c (SDL_GetBasePath): fixed the solaris code path.
...
Reference issue: https://github.com/libsdl-org/SDL/pull/6681
2022-12-02 06:23:30 +03:00
Ozkan Sezer
ab916e8a61
fixed corrupted (zero-sized) SDL3-WinRTResource_BlankCursor.cur.
...
(copied from SDL2 branch with renaming.)
2022-12-02 03:32:00 +03:00
Ozkan Sezer
bb8adf74e0
cmake/sdlchecks.cmake: make it diff smaller against SDL2
2022-12-02 03:01:02 +03:00
Ozkan Sezer
45025799b7
restore SDL_malloc.c original formatting.
2022-11-30 17:28:26 -08:00
Ozkan Sezer
14b902faca
begin_code.h: add gcc version checks to the alloc_size attributes.
2022-11-30 11:33:32 +03:00
Ozkan Sezer
4b6390261b
begin_code.h: remove obsolete __SYMBIAN32__ handling for DECLSPEC.
2022-11-30 11:33:32 +03:00
Ozkan Sezer
8901297437
SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits.
2022-11-29 08:53:56 -08:00
Ozkan Sezer
141bc25198
SDL_rwops.c: reduce ifdefs, and mark SDL_RWFromFP() as SDL_INLINE.
2022-11-26 20:11:20 +03:00
Ozkan Sezer
cc0a31d09b
INSTALL.txt: s/mingw64/mingw-w64/
2022-11-25 15:37:30 -08:00
Ozkan Sezer
7b21eaddce
remove autotools build system
...
- TODO: update INSTALL.txt to replace the autotools configure
instructions with cmake.
- TODO: update make build system to provide an equivalent to
autotools' `make dist` ?
- TODO: update / revise github actions, replace autotools-only
ones with cmake (e.g.: vmactions.yml for FreeBSD.)
Reference issue: https://github.com/libsdl-org/SDL/issues/6571
2022-11-25 15:37:30 -08:00
Ozkan Sezer
ab8df9096c
fix copy/paste typo in previous commit.
2022-11-25 23:20:00 +03:00
Ozkan Sezer
f3fe8ea7ad
fix CI windows errors again (because of unused stdio reader callbacks.)
2022-11-25 23:15:02 +03:00
Ozkan Sezer
a8faac1b8b
fixed SDL_config_windows.h (was broken by 1e4cd682)
2022-11-25 23:04:04 +03:00
Ozkan Sezer
de0cca91d4
fix CI windows errors because of SDL_RWFromFP()
2022-11-25 22:55:30 +03:00
Ozkan Sezer
25e9449a41
fix SDL_PI_D (L suffix is for long double, not double.)
2022-11-25 22:40:37 +03:00
Ozkan Sezer
1e4cd682b3
removed M_PI detection from cmake, removed HAVE_M_PI from config files.
...
(didn't touch autofoo side for it so as not to break PR/6605)
2022-11-25 22:35:40 +03:00
Ozkan Sezer
0b8309da0c
renamed SDL PI constants to SDL_PI_D and SDL_PI_F.
2022-11-25 22:35:24 +03:00
Ozkan Sezer
f73f23a35c
added missing FGREP to Makefile.in. fixed syntax. regenerated configure.
2022-11-24 17:00:32 +03:00
Ozkan Sezer
dcad446066
fix dynapi after SDL_GDKSuspendComplete addition.
2022-11-23 23:04:25 +03:00
Ozkan Sezer
34231f5ba0
reverted opengles removal.
2022-11-23 18:50:02 +03:00
Ozkan Sezer
7767e0c5f9
SDL_config_windows.h: fixed misplaced #endif
...
was introduced by commit 8d6fda4810
2022-11-23 08:47:14 +03:00
Ozkan Sezer
5db60670ba
removed linkage to OpenGLES framework
2022-11-23 07:47:00 +03:00
Ozkan Sezer
016b757311
reverted jack audio backend removal.
2022-11-23 06:50:20 +03:00
Ozkan Sezer
f4864656d9
removed WinRT-specific hints.
2022-11-22 23:50:00 +03:00
Ozkan Sezer
dc2a3e06e9
removed WinRT support.
2022-11-22 23:36:24 +03:00
Ozkan Sezer
bd5d26071a
removed testgles.c remnants.
2022-11-22 22:14:14 +03:00
Ozkan Sezer
7df102d220
reverted sndio backend removal.
2022-11-22 22:04:10 +03:00
Ozkan Sezer
30b1ab2add
removed opengles.
2022-11-22 21:48:40 +03:00
Ozkan Sezer
e581c5d000
removed SDL_VIDEO_DRIVER_MIR remnants.
2022-11-22 20:53:04 +03:00
Ozkan Sezer
be6853b6f1
removed WinCE readmes.
2022-11-22 20:51:50 +03:00
Ozkan Sezer
3cccaeba6c
removed jack audio remnants.
2022-11-22 20:51:07 +03:00
Ozkan Sezer
3aea865cdf
removed directfb support.
2022-11-22 20:45:45 +03:00
Ozkan Sezer
eae9c79c21
SDL_syswm.h: removed SDL_SYSWM_MIR
2022-11-22 20:26:24 +03:00
Ozkan Sezer
5cedc2f1ff
removed QNX support.
2022-11-22 20:23:40 +03:00
Ozkan Sezer
b6604a456f
regenerated configure.
2022-11-22 20:11:50 +03:00
Ozkan Sezer
e89a1f9157
removed NaCL support.
2022-11-22 20:10:47 +03:00
Ozkan Sezer
cdb54ad21e
removed arts, esd, fusionsound, nas, paudio, sndio, sunaudio, winmm audio backends.
2022-11-22 19:51:56 +03:00
Ozkan Sezer
8d6fda4810
removed os2 support & support for building SDL with watcom.
2022-11-22 19:18:47 +03:00
Ozkan Sezer
63243eb3a5
removed pandora support
2022-11-22 18:50:00 +03:00
Ozkan Sezer
d8864ea11d
removed visualtest
2022-11-22 18:47:03 +03:00
Ozkan Sezer
3bc4bad8fb
add missing strcasestr checks to cmake and autotools build systems,
...
and update config files.
2022-11-20 14:20:33 -08:00
Ozkan Sezer
6dc96aa745
SDL_UDEV_DelCallback: return early if _this is NULL
...
Fixes https://github.com/libsdl-org/SDL/issues/6548
2022-11-18 18:02:10 +03:00
Ozkan Sezer
06492c5981
CI, MSVC: update to use microsoft/setup-msbuild v1.1.3.
...
Fixes github deprecation warnings
2022-11-16 00:20:28 +03:00
Ozkan Sezer
dd44cacbd6
remove duplicated SDL_hidapi_steam.c additions to watcom makefiles.
2022-11-11 12:51:30 +03:00
Ozkan Sezer
db01016dd6
revert replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/6494 .
2022-11-07 21:15:30 +03:00
Ozkan Sezer
64c93f7804
replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES.
2022-11-06 23:51:04 +03:00
Ozkan Sezer
20beed3029
SDL_EGL_GetProcAddress: remove unnecessary underscore-prepended search.
...
Closes https://github.com/libsdl-org/SDL/issues/6236 .
2022-10-25 14:56:32 +03:00
Ozkan Sezer
0e1d19cf68
fix build errors resulting from -Wmisleading-indentation
2022-10-22 18:56:40 +03:00
Ozkan Sezer
65a38a4015
hidapi, libusb: remove os/2 symbol load hack after os/2 loadso updates
2022-10-22 08:40:16 -07:00
Ozkan Sezer
3f1b5efcca
os2 loadso improvements:
...
- SDL_LoadObject: upon failure, strip the .dll extension and retry,
but only if module name has no path.
- SDL_LoadFunction: upon failure, retry with an underscore prepended,
e.g. for gcc-built dlls.
2022-10-22 08:40:16 -07:00
Ozkan Sezer
3d415bc5d6
loadso, dlsym, SDL_LoadFunction: cleanup the underscored name path.
...
- strlcpy was passed a wrong buffer length parameter. has worked so
far by luck.
- use memcpy instead of strlcpy for simplicity.
- 'append' has been a typo: should be 'prepend'.
2022-10-22 07:25:46 -04:00
Ozkan Sezer
4264c0b674
os2: fix error message for SDL_LoadObject()
2022-10-21 11:21:40 +03:00
Ozkan Sezer
d022039529
testhaptic: fix watcom "&array may not produce intended result" warning
2022-10-09 12:01:02 +03:00
Ozkan Sezer
e714d4d724
regenerated configure script.
2022-10-07 05:24:20 +03:00
Ozkan Sezer
e3b2830f99
updated VS project file
2022-10-06 18:03:28 +03:00
Ozkan Sezer
fa7ffa4e88
change the iconv configuration option names to be more verbose.
2022-10-06 03:37:50 +03:00
Ozkan Sezer
294ccba0a2
better wording for --enable-iconv description
2022-10-05 23:56:56 +03:00
Ozkan Sezer
c29629a5ef
fix permissions of Android.mk
2022-10-01 04:25:40 +03:00
Ozkan Sezer
7567c4cb00
revert executable permissions from Android.mk
2022-09-30 21:51:11 +03:00
Ozkan Sezer
1b52145bad
Makefile.w32: no need for the description field, we have a *.res already
2022-09-29 20:51:24 +03:00
Ozkan Sezer
8bcbdc706c
hidapi, libusb: backport read_thread indefinite loop fix from mainstream
...
Mainstream commit:
https://github.com/libusb/hidapi/commit/5ce9051e2f2e65013485bc4c83897610df82f3c9
2022-09-28 08:26:08 -07:00
Ozkan Sezer
77c7836c26
fix vita build failure after commit 2c518747b
2022-09-27 20:21:24 +03:00
Ozkan Sezer
6b75a592a4
autotools: revised and silenced esound detection a bit.
2022-09-24 20:01:04 +03:00
Ozkan Sezer
f6c9b06562
cmake: output libSDL2-2.0.0.dylib like autotools, not libSDL2-2.0.dylib.
...
libSDL2-2.0.dylib is now installed as a symlink to libSDL2-2.0.0.dylib :
$ ls -l *.dylib
-rwxr-xr-x. 1 ozkan ozkan 1755488 Sep 23 23:53 libSDL2-2.0.0.dylib
lrwxrwxrwx. 1 ozkan ozkan 19 Sep 23 23:53 libSDL2-2.0.dylib -> libSDL2-2.0.0.dylib
lrwxrwxrwx. 1 ozkan ozkan 17 Sep 23 23:53 libSDL2.dylib -> libSDL2-2.0.dylib
Reference issue: https://github.com/libsdl-org/sdl12-compat/issues/217
2022-09-23 23:56:04 +03:00