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
Ozkan Sezer
098a7a043e
add missing quotes to the fallback CHECK_OBJC_SOURCE_COMPILES macro
...
Closes: https://github.com/libsdl-org/SDL/issues/6268 .
2022-09-21 10:37:02 +03:00
Ozkan Sezer
db225dec41
autotools: stop using AC_FUNC_MEMCMP and AC_FUNC_STRTOD
...
Closes: https://github.com/libsdl-org/SDL/issues/6266 .
2022-09-20 20:03:20 +03:00
Ozkan Sezer
887ae0c6eb
fix build failure after commit 2a8d00634d if strtod isn't available.
2022-09-20 18:20:00 +03:00
Ozkan Sezer
3f5c46663e
SDL_vsscanf: fix an uninitialized warning
2022-09-20 11:56:40 +03:00
Ozkan Sezer
c833294817
tests, watcom: silence lots of W202 warnings from new vulkan headers.
2022-09-18 17:33:04 +03:00
Ozkan Sezer
5fba31f6fb
SDL_HasPrimarySelectionText: fix -Wunreachable-code-return warning.
2022-09-17 00:51:00 +03:00
Ozkan Sezer
c0baa6bf5e
move SDL_windowstaskdialog.h contents into SDL_windowsmessagebox.c
...
Silences clang -Wpragma warnings:
D:/a/SDL/SDL/src/video/windows/SDL_windowstaskdialog.h:21:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include <pshpack1.h>
^
D:/a/_temp/msys64/clang64/include/pshpack1.h:7:9: note: previous '#pragma pack' directive that modifies alignment is here
#pragma pack(push,1)
^
In file included from D:/a/SDL/SDL/src/video/windows/SDL_windowsmessagebox.c:35:
D:/a/SDL/SDL/src/video/windows/SDL_windowstaskdialog.h:156:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include <poppack.h>
^
note: previous '#pragma pack' directive that modifies alignment is here
2 warnings generated.
Closes: https://github.com/libsdl-org/SDL/issues/6240
2022-09-16 20:03:50 +03:00
Ozkan Sezer
339f7a2f6b
SDL_windows.h: guard WIN32_LEAN_AND_MEAN and STRICT macro defines.
...
also define them as 1, instead of empty.
Reference issue: https://github.com/libsdl-org/SDL/issues/6239
2022-09-16 17:28:20 +03:00
Ozkan Sezer
c23fb235c8
SDL_render_d3d12.c: Fix uninitialized warning for CreateEventExFunc
2022-09-16 17:20:56 +03:00
Ozkan Sezer
d86cb8ec9e
SDL_offscreenwindow.c: swap include order of SDL_egl_c.h/SDL_sysvideo.h
...
Fixes redefinition warnings from windows builds.
Reference issue: https://github.com/libsdl-org/SDL/issues/6239
2022-09-16 17:05:02 +03:00
Ozkan Sezer
6dec78ed11
fix permissions of SDL_opengl_glext.h
2022-09-15 11:55:04 +03:00
Ozkan Sezer
2e24708af2
Makefile.w32: silence lots of W202 warnings from new vulkan headers
2022-09-15 11:23:50 +03:00
Ozkan Sezer
5b2884cb02
apply commit d0a3570300 to cmake side too.
2022-09-12 20:28:00 +03:00
Ozkan Sezer
d936499670
regenerated configure script.
2022-09-12 20:20:04 +03:00
Ozkan Sezer
787cd580ee
silence unused function warning for SDL_endswith() on non-linux.
2022-09-08 23:00:04 +03:00
Ozkan Sezer
5ffede35d9
Fix https://github.com/libsdl-org/SDL/issues/6191
2022-09-06 19:56:29 +03:00
Ozkan Sezer
911524da45
fix DYLIB version inconsistencies and test failures after #6188 .
2022-09-06 03:15:02 +03:00
Ozkan Sezer
612a86ebad
HIDAPI_DriverPS3_UpdateEffects: kill bad use of & operator on effects[]
2022-09-05 20:47:00 +03:00
Ozkan Sezer
0c984360d1
SDL_hidapi_wii.c: fix a -Wshadow warning
2022-09-02 20:02:56 +03:00
Ozkan Sezer
5be157b3a2
SDL_hidapi_wii.c: fix -Wpointer-sign warnings
2022-09-02 19:33:40 +03:00