Ozkan Sezer
4b2b475ac2
remove unused vulkan/*.hpp files.
...
(cherry picked from commit 611b3dd1fd )
2023-07-17 00:11:51 +03:00
Ozkan Sezer
776a5e0d25
pulseaudio: eliminate <pulse/simple.h> include.
2023-07-13 01:51:10 +03:00
Ozkan Sezer
376c6a9dd1
apply commit 3aba9d4473 to autotools, too.
2023-07-13 01:51:02 +03:00
Ozkan Sezer
29d461b628
need pulseaudio >=0.9.15. call pa_threaded_mainloop_set_name only if available.
2023-07-12 21:39:41 +03:00
Ozkan Sezer
0ad822eb70
SDL_RWFromMem, SDL_RWFromConstMem: reject negative size parameters.
2023-07-10 00:14:35 +03:00
Ozkan Sezer
825b0324cf
fixed windows build after commit 7e8be3f
2023-07-04 02:24:28 +03:00
Ozkan Sezer
681f67d353
fixed build after commit d2372c8538.
2023-06-14 00:25:50 +03:00
Ozkan Sezer
154ad6faa9
SDL_dynapi.c: minor cosmetics.
2023-06-10 20:50:10 +03:00
Ozkan Sezer
f5b3247aae
further mouse relative motion fix for os/2 (thanks Andrey Vasilkin)
2023-06-08 03:40:32 +03:00
Ozkan Sezer
b1324fbc9f
fixed os/2 mouse relative motion not working (thanks Andrey Vasilkin,)
...
for issue reported at https://github.com/bitwiseworks/SDL2-os2/issues/5
2023-06-05 11:50:50 +03:00
Ozkan Sezer
a1dea11d32
fix MSVC build error.
2023-06-04 14:29:10 +03:00
Ozkan Sezer
7f7ea909bc
testautomation_guid.c: fix integer warning in 32 bit builds.
2023-05-31 04:50:02 +03:00
Ozkan Sezer
9dea06f5b5
fix mingw build failures in CI with clang-tidy.
...
(cherry-picked from commit a8a72de6fb )
2023-05-26 23:55:04 +03:00
Ozkan Sezer
feeec90873
test/testgles2_sdf.c: type fixes from commit e26e893daf, style clean-up.
2023-05-19 17:00:24 +03:00
Ozkan Sezer
92a487f2e4
style fixes for SDL_PROC macros.
2023-05-19 14:10:02 +03:00
Ozkan Sezer
0f2322acfc
hidapi/mac: replace sprintf uses with snprintf.
...
Reference issues:
- https://github.com/libusb/hidapi/pull/509
- https://github.com/libusb/hidapi/pull/511
(cherry picked from commit ae9119c36b )
2023-04-24 10:46:49 -07:00
Ozkan Sezer
5f344c17c2
hidapi/mac: import mainstream commit c1b9d2ad
...
https://github.com/libusb/hidapi/commit/c1b9d2ad985c826f7916aa793d4728885a43a0f4
Properly handle the close of run loop on macOS
(https://github.com/libusb/hidapi/pull/522 )
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;
(cherry picked from commit 62d1a2c836 )
2023-04-24 10:46:49 -07:00
Ozkan Sezer
f633915443
fix build after commit 22685556e5.
2023-04-05 02:10:56 +03:00
Ozkan Sezer
45a6ad8e57
wikiheaders.pl: make it work with older perl versions, e.g. 5.10.
2023-03-24 11:56:40 +03:00
Ozkan Sezer
5e35309913
fix bad merge of sizeof style patch
2023-03-10 08:32:24 +03:00
Ozkan Sezer
22de91a947
Removed guard around the enabled assertions support code
...
Otherwise, SDL_assert_always() wouldn't work.
Fixes https://github.com/libsdl-org/SDL/issues/7433
2023-03-09 20:51:50 +03:00
Ozkan Sezer
a70964aaf4
fix SDL_FindFreePlayerIndex so it can really return -1.
2023-03-08 20:00:50 +03:00
Ozkan Sezer
bc87983310
tests: added -DHAVE_SIGNAL_H to CFLAGS in watcom makefiles
2023-03-08 18:56:50 +03:00
Ozkan Sezer
fd4bb4154b
dynapi: replace uses of deprecated SDL_assert_state and SDL_assert_data
2023-03-03 03:01:02 +03:00
Ozkan Sezer
5a7ea76ed3
fix MSVC build failures in CI after commit 1e5e8e2f
...
(cherry picked from commit a2f8cf8fc0 )
2023-02-22 13:31:44 -05:00
Ozkan Sezer
da6bce4f76
SDL_x11dyn.h: include XInput2.h also for Xfixes
...
Fixes https://github.com/libsdl-org/SDL/issues/7343
2023-02-11 23:51:28 +03:00
Ozkan Sezer
22df572979
look for clock_gettime() in libc first, then in librt if not found.
2023-02-13 22:28:02 +03:00
Ozkan Sezer
634705851d
cmake: really fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:56:10 +03:00
Ozkan Sezer
1194f52a5c
cmake: fix detection of pthread_setname_np() on Apple platforms.
2023-02-13 11:55:40 +03:00
Ozkan Sezer
fde6323662
fix build after the Logitech ChillStream patch.
2023-02-07 01:11:02 +03:00
Ozkan Sezer
c68cfcdb2d
make sure to not enable SDL_PASSED_BEGINTHREAD_ENDTHREAD for WinRT
2023-02-07 00:21:56 +03:00
Ozkan Sezer
7bf3e28dc6
windows/SDL_systhread.c: remove some dead code.
2023-02-07 00:21:40 +03:00
Ozkan Sezer
4f7f72c257
replaced line comments in public header.
2023-02-04 10:02:10 +03:00
Ozkan Sezer
06b305d232
dynapi: cast GetProcAddress() result to void*
2023-02-03 17:40:40 +03:00
Ozkan Sezer
880ac537a5
typo fix to config.sub,
...
from https://lists.gnu.org/archive/html/config-patches/2023-01/msg00001.html
2023-01-21 10:15:02 +03:00
Ozkan Sezer
73a68c6ea5
regenerated configure script.
2023-01-18 21:56:10 +03:00
Ozkan Sezer
6a52017724
SDL_dynapi.c: add extern "C" guards, just in case..
2023-01-12 14:01:02 +03:00
Ozkan Sezer
d09d0aaab6
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:50 +03:00
Ozkan Sezer
0d5467a6e9
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
305e7b55bd
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
c7f22f0324
render/SDL_yuv_sw.c: fix build after commit d234f7a
2023-01-02 20:51:56 +03:00
Ozkan Sezer
5b904a103a
windows: more HANDLE -> HMODULE changes.
2022-12-31 08:00:20 +03:00
Ozkan Sezer
0a8f9777a7
SDL_dynapi.c: LoadLibraryA() returns HMODULE.
2022-12-30 11:11:10 +03:00
Ozkan Sezer
d47ff8ae73
SDL_thread.h: fix SDL_CreateThreadWithStackSize macro for OS/2
2022-12-27 00:14:00 +03:00
Ozkan Sezer
738442b82a
SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32
...
(cherry-picked from commit 29ba5f5d64 )
2022-12-27 00:11:55 +03:00
Ozkan Sezer
bcccbbd894
tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros
2022-12-05 00:35:32 +03:00
Ozkan Sezer
4e465f25d0
reverted const removal from SDL_NewAudioStream in commit d0bbfdbfb.
2022-12-04 12:55:15 +03:00
Ozkan Sezer
b990e9145b
build fixes after d0bbfdbfb8
2022-12-02 02:13:59 +03:00
Ozkan Sezer
e57554ea65
SDL_main.h: added field to SDL_GDKSuspendComplete documentation.
2022-12-01 20:37:00 +03:00
Ozkan Sezer
b067ab9202
restore SDL_malloc.c original formatting.
...
(cherry picked from commit 45025799b7 )
2022-11-30 18:18:06 -08:00
Ozkan Sezer
8eeca8c7db
SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits.
...
(cherry picked from commit 8901297437 )
2022-11-30 05:59:03 -08:00
Ozkan Sezer
64a5e7be98
added missing FGREP to Makefile.in. fixed syntax. regenerated configure.
2022-11-24 17:00:20 +03:00
Ozkan Sezer
cd399caf6f
fix dynapi after SDL_GDKSuspendComplete addition.
2022-11-23 22:50:10 +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
Ozkan Sezer
0c24b46e9f
SDL_hidapi_wii.c: fix build in c89 mode.
2022-09-02 18:55:00 +03:00
Ozkan Sezer
0ffaf5b871
SDL_hidapi_wii.c: fix build in c89 mode and builds using watcom compiler
2022-09-02 02:04:20 +03:00
Ozkan Sezer
2847696338
hidapi: really fix dynamic / non-dynamic libusb loading.
2022-09-01 22:55:00 +03:00