Tue, 06 Dec 2016 00:40:09 -0800Fixed bug 3508 - variably modified ‘SDL_dummy_size’ at file scope in test/testatomic.c
Sam Lantinga <slouken@libsdl.org> [Tue, 06 Dec 2016 00:40:09 -0800] rev 10679
Fixed bug 3508 - variably modified ‘SDL_dummy_size’ at file scope in test/testatomic.c

Ciro Santilli

GCC 6, Ubuntu 16.10, cd test; ./configure; make

/bin/sh config.status Makefile
config.status: creating Makefile
gcc -o loopwave loopwave.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
gcc -o testatomic testatomic.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
In file included from /usr/include/SDL2/SDL_main.h:25:0,
from /usr/include/SDL2/SDL.h:32,
from testatomic.c:14:
/usr/include/SDL2/SDL_stdinc.h:261:20: error: variably modified ‘SDL_dummy_size’ at file scope
typedef int SDL_dummy_ ## name[(x) * 2 - 1]
^
testatomic.c:106:1: note: in expansion of macro ‘SDL_COMPILE_TIME_ASSERT’
SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */
^~~~~~~~~~~~~~~~~~~~~~~
Makefile:114: recipe for target 'testatomic' failed
make: *** [testatomic] Error 1

If I remove the line SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */ it works, lazy to figure out the best way to do this.

Mon, 05 Dec 2016 21:28:27 -0800Fixed SDL always being built because of missing headers in the project.
Sam Lantinga <slouken@libsdl.org> [Mon, 05 Dec 2016 21:28:27 -0800] rev 10678
Fixed SDL always being built because of missing headers in the project.

Sat, 03 Dec 2016 08:39:21 -0800Added support for the Hori Fighting Commander 4
Sam Lantinga <slouken@libsdl.org> [Sat, 03 Dec 2016 08:39:21 -0800] rev 10677
Added support for the Hori Fighting Commander 4

Sat, 03 Dec 2016 09:59:43 -0800Fixed crash at startup
Sam Lantinga <slouken@libsdl.org> [Sat, 03 Dec 2016 09:59:43 -0800] rev 10676
Fixed crash at startup

Sat, 03 Dec 2016 00:40:13 -0800Added Linux mapping for the DragonRise Inc. Generic USB Joystick
Sam Lantinga <slouken@libsdl.org> [Sat, 03 Dec 2016 00:40:13 -0800] rev 10675
Added Linux mapping for the DragonRise Inc. Generic USB Joystick

Fri, 02 Dec 2016 22:18:05 -0800Fixed compile warning on Visual Studio
Sam Lantinga <slouken@libsdl.org> [Fri, 02 Dec 2016 22:18:05 -0800] rev 10674
Fixed compile warning on Visual Studio

Fri, 02 Dec 2016 21:01:13 -0800Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse.
Sam Lantinga <slouken@libsdl.org> [Fri, 02 Dec 2016 21:01:13 -0800] rev 10673
Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse.
This currently doesn't affect absolute motion, which would need to be implemented on each windowing system so the cursor matches the reported mouse coordinates.

Fri, 02 Dec 2016 02:25:12 -0800Fixed missing prototypes on Android, patch from Sylvain
Sam Lantinga <slouken@libsdl.org> [Fri, 02 Dec 2016 02:25:12 -0800] rev 10672
Fixed missing prototypes on Android, patch from Sylvain

Fri, 02 Dec 2016 02:21:35 -0800Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
Sam Lantinga <slouken@libsdl.org> [Fri, 02 Dec 2016 02:21:35 -0800] rev 10671
Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad

Diego

I was previously unaware that rotating the device to a different orientation when the keyboard is shown causes a keyboardWillHide followed by a keyboardWillShow notification. The previous patch would then mistakenly StopTextInput when rotating. This patch fixes that by checking if the device is rotating before stopping text input.

Thu, 01 Dec 2016 07:31:08 -0800Added Linux controller mapping for the Nostromo n45 Dual Analog Gamepad
Sam Lantinga <slouken@libsdl.org> [Thu, 01 Dec 2016 07:31:08 -0800] rev 10670
Added Linux controller mapping for the Nostromo n45 Dual Analog Gamepad