[SDL] SDL 2.0 ABI locked

Ryan C. Gordon icculus at icculus.org
Fri Mar 8 08:40:08 PST 2013


On 03/07/2013 11:50 PM, Sam Lantinga wrote:
> As of tonight, SDL 2.0 is ABI locked!

Wait! We never changed SDL_INIT_EVERYTHING! Is this attached patch okay?

(Also, can we remove SDL_INIT_GAMECONTROLLER and just make that part of 
SDL_INIT_JOYSTICK? If not, I'm okay with that, but it seems like a 
reasonable change.)

--ryan.


-------------- next part --------------
# HG changeset patch
# User Ryan C. Gordon <icculus at icculus.org>
# Date 1362760688 18000
# Node ID 3a7557947a01ee31fc6072b1c9f399c2058a76c6
# Parent  8d6ab3bdc08bd79393cacd3a2e3991da196128fd
Changed SDL_INIT_EVERYTHING to only request currently-known subsystems.

diff --git a/include/SDL.h b/include/SDL.h
--- a/include/SDL.h
+++ b/include/SDL.h
@@ -114,7 +114,10 @@
 #define SDL_INIT_HAPTIC         0x00001000
 #define SDL_INIT_GAMECONTROLLER 0x00002000		/**< turn on game controller also implicitly does JOYSTICK */
 #define SDL_INIT_NOPARACHUTE    0x00100000      /**< Don't catch fatal signals */
-#define SDL_INIT_EVERYTHING     0x0000FFFF
+#define SDL_INIT_EVERYTHING ( \
+                SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | \
+                SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
+            )
 /*@}*/
 
 /**


More information about the SDL mailing list