Ozkan Sezer
5ca0926d8d
fixes to visual test MSVC project files.
...
-- based on a patch by Cameron Cawley
2021-12-21 20:12:20 +03:00
Ozkan Sezer
b8d839c0c0
remove all unnecessary stuff from visualtest configury.
2021-12-21 20:01:02 +03:00
Ozkan Sezer
8a355116d1
silence -Wwrite-strings in visualtest
2021-12-21 20:01:02 +03:00
Ozkan Sezer
71c497a3a3
visualtest windows build fixes
2021-12-21 14:50:00 +03:00
Ozkan Sezer
449ef08dcc
minimal fixes to visual test, so that it actually builds w/o warnings:
...
- linux_process.c: add an SDLVisualTest_ScreenshotProcess() stub for
linux builds succeed.
- action_configparser.c: fixes -Wswitch warnings.
- testharness.c: fixes 'is used uninitialized' warnings for userevents.
- testharness.c: fixes format string argument to 'Force killing...'
- testquit.c: fix type of options array in main().
- windows_screenshot.c: lowercase windows.h header name.
- ran dos2unix on all sources and add missing newlines at files' ends.
- minor adjustments to autotools build system (which actually seems to
need more surgery for unnecessary stuff...)
2021-12-21 14:24:20 +03:00
Ozkan Sezer
0673e448f0
autotools: improved detection of windows.gaming.input.h
...
similar to cmake commit 83583dc49d
2021-12-20 01:03:56 +03:00
Ozkan Sezer
398c0fdff0
cmake: simplify wayland-scanner 1.15 detection.
2021-12-18 23:56:10 +03:00
Ozkan Sezer
840339c49d
SDL_utf8strlcpy: store trailing_bytes explicity as unsigned type.
2021-12-18 14:01:02 +03:00
Ozkan Sezer
507d4bcd68
SDL_utf8strlen: run bit-test explicitly on unsigned char
2021-12-18 14:01:02 +03:00
Ozkan Sezer
82fc67ae4d
SDL_joystick.c: cast the arguments to nibble() to unsigned char.
2021-12-18 14:01:02 +03:00
Ozkan Sezer
47d3e96b43
SDL_joystick.c: (unsigned char) cast to SDL_tolower() parameters.
2021-12-18 14:01:02 +03:00
Ozkan Sezer
61107494a1
SDL_gamecontroller.c: (unsigned char) cast to SDL_isdigit() parameters.
2021-12-17 07:40:02 +03:00
Ozkan Sezer
ced442cd38
SDL_test_common.c: (unsigned char) cast to SDL_isdigit() parameter.
2021-12-17 07:33:10 +03:00
Ozkan Sezer
48d1ef8fad
another unsigned char cast in os2cp.c. code clean-up in os/2 geniconv.
2021-12-17 07:33:10 +03:00
Ozkan Sezer
dac6516057
os2iconv.c (_createUconvObj): cast to unsigned char, to be safe.
2021-12-17 02:50:40 +03:00
Ozkan Sezer
2052b5bc3e
os2messagebox: use proper UCHAR* typecast in assignment, just in case.
2021-12-17 01:10:10 +03:00
Ozkan Sezer
615f7b4453
more updates to os2 makefile for libiconv
2021-12-08 23:51:56 +03:00
Ozkan Sezer
b6d40b29a9
minor update to os2 makefile.
2021-12-08 21:15:24 +03:00
Ozkan Sezer
8d14e6ea44
replaced use of _MAX_PATH with CCHMAXPATH in os/2 code,
...
it now compiles without HAVE_LIBC
2021-12-08 14:01:02 +03:00
Ozkan Sezer
9409642e08
fix some warnings from vita builds (missing includes)
...
also some tidy-up to whitespace.
2021-12-07 21:24:24 +03:00
Ozkan Sezer
8cee50eea5
removed stdlib.h from SDL_psp_main.c now that exit() is gone.
2021-12-07 19:32:56 +03:00
Ozkan Sezer
4facca0bff
made Makefile.psp to build libSDL2main.a
2021-12-07 19:32:56 +03:00
Ozkan Sezer
00014dc2ac
fix some warnings from psp builds (missing includes.)
2021-12-07 18:47:10 +03:00
Ozkan Sezer
493d45f00f
minor tidy-up in cmake script.
2021-12-07 14:24:32 +03:00
Ozkan Sezer
f266d92286
psp/SDL_sysjoystick.c: fix -Wshadow warnings.
2021-12-07 14:04:32 +03:00
Ozkan Sezer
801dcbc5ef
SDL_render_sw.c: fix -Wshadow warnings.
2021-12-07 14:04:10 +03:00
Ozkan Sezer
03019c912a
autotools, cmake: tighten Xfixes check && explicitly test BarrierEventID
...
Apparently the older versions of libXi doesn't have it. Fixes the build
break issue reported at:
https://github.com/libsdl-org/SDL/commit/4b42c05ba1eaaaa9a4ef803acea8f13402271039#commitcomment-61427659
2021-12-06 20:37:52 +03:00
Ozkan Sezer
a887b8e28b
SDL_test_common.c: replaced all printf() calls with SDL_Log()
...
Otherwise, if one builds libSDL2_test using a new mingw but builds
the test programs using an older mingw, a link failure happens:
/opt/local/x86_64-w64-mingw32/lib/libSDL2_test.a(SDL_test_common.o): In function `printf':
/opt/local/x86_64-w64-mingw32/include/stdio.h:372: undefined reference to `__imp___acrt_iob_func'
collect2: ld returned 1 exit status
2021-12-03 20:03:10 +03:00
Ozkan Sezer
514f5858e4
autotools: disable static builds on os/2
2021-12-02 20:11:40 +03:00
Ozkan Sezer
a2b13e585c
SDL_iconv_string: avoid memory leak if realloc() fails.
2021-12-02 02:28:24 +03:00
Ozkan Sezer
f14a8bfa4e
fix whitespace.
2021-12-01 21:33:02 +03:00
Ozkan Sezer
b71bfdaafb
SDL_iconv.c (encodings): mark "WCHAR_T" as ENCODING_UTF16LE for OS/2 too
...
whcar_t is unsigned short in os/2, like windows
2021-12-01 20:50:40 +03:00
Ozkan Sezer
339f0d4097
configure.ac: adjust os2 section for system iconv() use.
2021-12-01 02:32:10 +03:00
Ozkan Sezer
563ef2aeb2
regenerated configure scripts.
2021-12-01 01:56:50 +03:00
Ozkan Sezer
efa1aa9a8f
initial attempt at adding os2 support to autotools
2021-12-01 01:55:56 +03:00
Ozkan Sezer
3355464079
libtool upgrade to 2.4.6 - 18/n: SDL customizations
...
removed os/2 versioning support.
2021-12-01 01:55:40 +03:00
Ozkan Sezer
5ae2f0fd19
libtool upgrade to 2.4.6 - 17/n: SDL customizations
...
fixes Windows linkage and the DLL name convention.
2021-12-01 01:55:32 +03:00
Ozkan Sezer
6a5aeaf948
libtool upgrade to 2.4.6 - 16/n: Fedora ABI-specific directories patch:
...
https://src.fedoraproject.org/rpms/libtool/blob/master/f/libtool-2.4.5-rpath.patch
2021-12-01 01:51:24 +03:00
Ozkan Sezer
792d7c9f6d
libtool upgrade to 2.4.6 - 15/n: -Xassembler and -Wa,* support :
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=86d71e869d998fb09bee543a2aaef7beb6d6f591
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=1b74d78401d7e09d5c31f4d479109d9b52984a32
2021-12-01 01:50:10 +03:00
Ozkan Sezer
8c44e0e0f8
libtool upgrade to 2.4.6 - 14/n: support for MidnightBSD
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=5df7dd49d5e68ea45118a0687ef2d4dd00399f1e
2021-12-01 01:50:10 +03:00
Ozkan Sezer
a6df1f7be1
libtool upgrade to 2.4.6 - 13/n: add mingw to systems not needing libm.
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46559
2021-12-01 01:50:10 +03:00
Ozkan Sezer
897efe1837
libtool upgrade to 2.4.6 - 12/n: fix preloading symbols on Solaris 11.3
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22373
2021-12-01 01:50:10 +03:00
Ozkan Sezer
b5dc1eedb8
libtool upgrade to 2.4.6 - 11/n: FreeBSD elftoolchain strip support
...
http://savannah.gnu.org/patch/?8675
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=d7c8d3b43fef8641f4354edaa0429d157259bf56
2021-12-01 01:50:10 +03:00
Ozkan Sezer
3cbd561690
libtool upgrade to 2.4.6 - 10/n: export AIX TLS symbols fix
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff_plain;h=d15b321427c8b7dca0347ac56525cb64bde07ddc
2021-12-01 01:50:10 +03:00
Ozkan Sezer
27666089b9
libtool upgrade to 2.4.6 - 9/n: fix func_fatal_error function name typo
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=350082b6aa89f9ef603fcebbb4cf33f15a743f2f
2021-12-01 01:50:10 +03:00
Ozkan Sezer
4be6ab2692
libtool upgrade to 2.4.6 - 8/n: set file_list_spec to '@' on OS/2
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=a938703c462bd2ba0e520808d45186020ea600be
2021-12-01 01:50:10 +03:00
Ozkan Sezer
83a22d059c
libtool upgrade to 2.4.6 - 7/n: fix an os/2 typo
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38305
2021-12-01 01:50:10 +03:00
Ozkan Sezer
e8881b0d3e
libtool upgrade to 2.4.6 - 6/n: fix typo introduced in libtool-2.4.3
...
i.e. wrong -L/-R detection. see:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21137 | 22895 | 31900 | 36762
2021-12-01 01:50:10 +03:00
Ozkan Sezer
8b13673c19
libtool upgrade to 2.4.6 - 5/n: fix linker error for powerpc64le
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23348
2021-12-01 01:50:10 +03:00
Ozkan Sezer
8e62063811
libtool upgrade to 2.4.6 - 4/n: fix m4 quoting bug
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41837
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=0904164dd5b57b3230dce04207738ce961591762
2021-12-01 01:50:10 +03:00
Ozkan Sezer
df40268254
libtool upgrade to 2.4.6 - 3/n: fixes for gcc/clang linkage
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=702a97fbb09bd7088a50f2b239016d1e32843c24
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=a5c6466528c060cc4660ad0319c00740db0e42ba
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=f9970d99293faf908fdc153a653fa5781095fb7a
2021-12-01 01:50:10 +03:00
Ozkan Sezer
647514a5d0
libtool upgrade to 2.4.6 - 2/n: support macOS 11
...
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=9e8c882517082fe5755f2524d23efb02f1522490
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=8f4bdbda0a0c85cf6375a4c7546b83eb3fb596d3
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44684
2021-12-01 01:50:10 +03:00
Ozkan Sezer
c8ddccdef4
libtool upgrade to 2.4.6 - 1/n
2021-12-01 01:50:02 +03:00
Ozkan Sezer
662ea5abe4
minor correction after previous patch and minor tidy-up.
2021-12-01 01:40:24 +03:00
Ozkan Sezer
70c5e91d0f
os/2 optionally builds against libiconv.
2021-12-01 01:20:10 +03:00
Ozkan Sezer
b20484e803
minor os/2 reorganization for iconv
2021-12-01 01:20:02 +03:00
Ozkan Sezer
09465a9083
hidapi, windows: replace a strncpy() with plain memcpy()
...
mainstream has a similar change, already.
2021-11-30 21:10:10 +03:00
Ozkan Sezer
ede73b4cfc
testnativeos2.c: make its code style to match SDL2.
2021-11-28 23:02:02 +03:00
Ozkan Sezer
8f17af5e21
hidapi: mark libusb function pointers with LIBUSB_CALL.
2021-11-27 11:02:04 -08:00
Ozkan Sezer
5a0ea7fb17
Check for O_CLOEXEC definition in fcntl.h at configuration time,
...
If not available, define it internally as 0 (in SDL_internal.h).
Define it as available for macOS >= 10.7 in SDL_config_macosx.h.
2021-11-27 19:23:10 +03:00
Ozkan Sezer
cb2f3bedf5
tidy-up a comment in cmake script
2021-11-26 21:20:50 +03:00
Ozkan Sezer
22e59cd106
CMakeLists.txt: update DYLIB_CURRENT_VERSION too 2.0.18 for release
2021-11-26 19:15:28 +03:00
Ozkan Sezer
eb39e20588
SDL_endian.h: remove aarch64 asm.
...
The asm has been reported broken in at least optimized Apple M1 builds;
and besides, the compiler builtins have precedence over the asm anyway.
Closes https://github.com/libsdl-org/SDL/issues/3943
2021-11-25 17:00:50 +03:00
Ozkan Sezer
53aa8eec5f
minor cleanup for watcom _inline keyword.
2021-11-25 17:00:24 +03:00
Ozkan Sezer
d9f70878f9
don't use CMAKE_COMPILER_IS_MINGW
...
Fixes https://github.com/libsdl-org/SDL/issues/5002
2021-11-24 18:10:00 +03:00
Ozkan Sezer
b7f9c2089a
cmake: handle warning flags properly (thanks to hgs3 for pointers.)
...
fixes https://github.com/libsdl-org/SDL/issues/4983
2021-11-23 18:56:50 +03:00
Ozkan Sezer
f8900583e5
removed windows winmm joystick driver
2021-11-23 17:04:40 +03:00
Ozkan Sezer
d2871a348b
testhaptic.c, testjoystick.c: fixed -Wshadow warnings.
2021-11-23 15:10:50 +03:00
Ozkan Sezer
3eaa80bb0b
testgamecontroller.c: fixed -Wshadow warnings.
2021-11-23 14:22:02 +03:00
Ozkan Sezer
370b8318af
testmouse.c: fixed -Wshadow warnings.
2021-11-23 14:01:10 +03:00
Ozkan Sezer
e18be04bc6
Fixed undefined behavior in QueueCmdSetDrawColor()
...
Fixes https://github.com/libsdl-org/SDL/issues/4995
Patch from Andrew Kelley
2021-11-23 08:01:02 +03:00
Ozkan Sezer
35b7ce1893
cmake: final report fixes for mmx, ssemath, dummyvideo, wasapi, xinput.
...
also moved CoreVideo framework out of if(SDL_FILE) block, and removed a
now-irrelevant mingw related fixme.
2021-11-22 14:10:02 +03:00
Ozkan Sezer
ee2afa00ba
SDL_mfijoystick.m: fix build using older toolchains
...
Fixes https://github.com/libsdl-org/SDL/issues/4992
Fixes https://github.com/libsdl-org/SDL/issues/4958
2021-11-22 05:11:10 +03:00
Ozkan Sezer
1927c08036
minor tidy-up to configury.
2021-11-22 05:00:02 +03:00
Ozkan Sezer
fadf41fc6e
remove excess whitespace
2021-11-20 21:55:20 +03:00
Ozkan Sezer
504e7aa59b
minor tidy-up for ifdefs & co.
2021-11-20 21:51:10 +03:00
Ozkan Sezer
495ee42a83
testcustomcursor.c: replaced libc sscanf with SDL_sscanf
2021-11-20 01:15:20 +03:00
Ozkan Sezer
990fb668f7
tests: several -Wwrite-strings fixes.
2021-11-20 01:02:02 +03:00
Ozkan Sezer
b67965979a
SDL_hidapi.c: fix SDL_udev.h include path
...
fixes https://github.com/libsdl-org/SDL/issues/4981
2021-11-19 11:55:50 +03:00
Ozkan Sezer
3ed0c62672
SDL_RWsize: updated description
2021-11-19 01:24:40 +03:00
Ozkan Sezer
dd6269b1e0
SDL_endian.h: added proper version check (VS2005+) to MSVC functionality
2021-11-17 17:55:00 +03:00
Ozkan Sezer
d2cf191936
hidapi, linux: merged a minor warning + code style fix from mainstream.
2021-11-17 10:00:10 +03:00
Ozkan Sezer
7d3045f273
minor whitespace tidy-up.
2021-11-16 23:51:40 +03:00
Ozkan Sezer
29b79313a0
minor tweak for a slightly smaller configure script
2021-11-16 23:33:32 +03:00
Ozkan Sezer
68ffd24c58
autotools, cmake: don't define SDL_JOYSTICK_HIDAPI in CheckHIDAPI()
2021-11-16 23:37:20 +03:00
Ozkan Sezer
781caec2b2
SDL_waylandevents.c (keyboard_handle_keymap): silenced -Wwrite-strings .
2021-11-15 00:55:24 +03:00
Ozkan Sezer
5c067906ba
wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR
2021-11-15 00:55:04 +03:00
Ozkan Sezer
3eb9bfac7a
win32 rawinput & wgi joystick: avoid -Werror=declaration-after-statement
2021-11-14 22:22:50 +03:00
Ozkan Sezer
8a6e48d46d
constified SDL_RegisterApp()
2021-11-14 04:40:50 +03:00
Ozkan Sezer
7dfd22ac5e
fix XGetDefault signature - its first and second params are _Xconst
2021-11-14 02:32:00 +03:00
Ozkan Sezer
c7aa04d03e
SDL_test_harness.c: avoid -Wwrite-strings
2021-11-14 02:31:20 +03:00
Ozkan Sezer
be7b663c2c
audio/winmm/SDL_winmm.c (SetMMerror): constify.
2021-11-14 02:30:56 +03:00
Ozkan Sezer
e4aa608a5c
change (char*) casts to (const char*) in WIN_UTF8 macros
2021-11-14 02:30:34 +03:00
Ozkan Sezer
780f6cbd38
build libSDL2_test too with Makefile.minimal
2021-11-14 01:10:32 +03:00
Ozkan Sezer
fbe810070b
more fixes to standalone makefiles.
2021-11-13 21:56:20 +03:00
Ozkan Sezer
62b41f61d4
fix build of testmouse.c
2021-11-13 21:29:50 +03:00
Ozkan Sezer
2d1706069a
fixes to Makefile.minimal
2021-11-13 21:29:32 +03:00
Ozkan Sezer
d1e6bd93d8
fix library name in Makefile.pandora
2021-11-13 21:29:10 +03:00
Ozkan Sezer
3e2f8668be
added some more missing sources to standalone makefiles.
2021-11-13 20:35:24 +03:00
Ozkan Sezer
a2c27d39cf
SDL_hidapi_switch.c (ConstructSubcommand): lose use of '&' on rumbleData
...
SwitchCommonOutputPacket_t->rumbleData is an array.
2021-11-13 17:56:28 +03:00