Fri, 24 Nov 2017 03:01:07 -0800Fixed bug 3979 - Failed to link with "multiple definition of `scalbln'" error on both MinGW and MinGW-w64 by CMake
Sam Lantinga [Fri, 24 Nov 2017 03:01:07 -0800] rev 11713
Fixed bug 3979 - Failed to link with "multiple definition of `scalbln'" error on both MinGW and MinGW-w64 by CMake

Vitaly Novichkov

Once I ran build of my codecs collection on AppVeyor where my CMake script downloads latest SDL2 from HG repo, failed to link because of math functions conflict:

https://ci.appveyor.com/project/Wohlstand/audiocodecs/build/1.0.44
The revision is b94292eebb5c

There are both vanilla MinGW and MinGW-w64 are failed to build.


```
[100%] Linking C shared library libSDL2.dll
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../libmingwex.a(scalbn.o):(.text+0x0): multiple definition of `scalbln'
CMakeFiles\SDL2.dir/objects.a(s_scalbn.c.obj):C:/projects/audiocodecs/build-MinGW-Release-Win32/external/SDL2/src/SDL2HG/src/libm/s_scalbn.c:30: first defined here

Tue, 21 Nov 2017 21:58:27 -0800Fixed some compiler warnings
Sam Lantinga [Tue, 21 Nov 2017 21:58:27 -0800] rev 11712
Fixed some compiler warnings

Tue, 21 Nov 2017 21:51:33 -0800Disabled spurious Visual Studio warnings in the uClibc math code
Sam Lantinga [Tue, 21 Nov 2017 21:51:33 -0800] rev 11711
Disabled spurious Visual Studio warnings in the uClibc math code

Tue, 21 Nov 2017 21:30:47 -0800Fixed bug 3976 - SDL drivers may leak driverdata memory due to ignoring return value of SDL_AddDisplayMode
Sam Lantinga [Tue, 21 Nov 2017 21:30:47 -0800] rev 11710
Fixed bug 3976 - SDL drivers may leak driverdata memory due to ignoring return value of SDL_AddDisplayMode

C Snover

SDL_AddDisplayMode returns an SDL_bool corresponding to whether or not the given display mode was added or not. It will return SDL_FALSE if a matching display mode already exists in the display's list of display modes, which causes ownership of the mode driverdata to remain with the caller. Some video drivers ignore the return value of SDL_AddDisplayMode, so leak the driverdata memory when SDL_AddDisplayMode returns SDL_FALSE.

Mon, 20 Nov 2017 13:59:43 -0500Steam Virtual GamePad config for macOS
Ethan Lee [Mon, 20 Nov 2017 13:59:43 -0500] rev 11709
Steam Virtual GamePad config for macOS

Mon, 20 Nov 2017 00:06:37 -0800Fixed bug 3973 - Include of stdint is needed to build on linux, mingw and possibly android
Sam Lantinga [Mon, 20 Nov 2017 00:06:37 -0800] rev 11708
Fixed bug 3973 - Include of stdint is needed to build on linux, mingw and possibly android

Stuart Axon

https://discourse.libsdl.org/t/stdint-h-removed/23426

https://discourse.libsdl.org/t/debuild-fails-to-build-the-last-few-days/23429/4

Currently SDL2 is not building in Linux (x86 and ARM), Android and MingW because include stdint.h has been removed from yuv_rgb.h

Mon, 20 Nov 2017 00:03:23 -0800Fixed bug 3959 - cmake build broken by commit 11702 (cf166abbde4a) due to typo
Sam Lantinga [Mon, 20 Nov 2017 00:03:23 -0800] rev 11707
Fixed bug 3959 - cmake build broken by commit 11702 (cf166abbde4a) due to typo

Mate Nagy
There is a typo in CMakeLists.txt that makes CMake exit with failure.

Change that causes the problem: (Notice the double ending brackets)
${SDL2_SOURCE_DIR}/src/video/*.c)
+ ${SDL2_SOURCE_DIR}/src/video/yuv2rgb/*.c)

Fix:
Just remove the first ending bracket resulting in:
${SDL2_SOURCE_DIR}/src/video/*.c
${SDL2_SOURCE_DIR}/src/video/yuv2rgb/*.c)

Sun, 19 Nov 2017 23:36:54 -0800Added support for aarch64 memory barrier instruction
Sam Lantinga [Sun, 19 Nov 2017 23:36:54 -0800] rev 11706
Added support for aarch64 memory barrier instruction

Fri, 17 Nov 2017 11:03:02 -0800Fixed bug 3964 - YUV to RGB in video/SDL_yuv.c is broken for any output format of type ABGR8888 or BGR888
Sam Lantinga [Fri, 17 Nov 2017 11:03:02 -0800] rev 11705
Fixed bug 3964 - YUV to RGB in video/SDL_yuv.c is broken for any output format of type ABGR8888 or BGR888

raist66676

Here is the bug in latest SDL 2.0.8 development repo. It is obvious and simple to fix by correcting typos on six lines of code.

In src/video/SDL_yuv.c on lines 217, 249, 280, 321, 353, and 384 the wrong conversion functions are called for SDL_PIXELFORMAT_ABGR8888 and SDL_PIXELFORMAT_BGR888. Instead of ABGR functions, BGRA functions are called. These are typos.

Fri, 17 Nov 2017 10:55:58 -0800Fixed building yuv_rgb.h when stdint.h isn't available (thanks Ozkan!)
Sam Lantinga [Fri, 17 Nov 2017 10:55:58 -0800] rev 11704
Fixed building yuv_rgb.h when stdint.h isn't available (thanks Ozkan!)