Qt and SDL2 do not play nice on osx apparently sdl2transition
authorkoda
Fri, 06 Dec 2013 00:56:56 +0100
branchsdl2transition
changeset 9709 9315727c0f1d
parent 9707 c433e74da79b
child 9711 7d0329f37181
Qt and SDL2 do not play nice on osx apparently
QTfrontend/util/SDLInteraction.h
--- a/QTfrontend/util/SDLInteraction.h	Fri Dec 06 00:45:32 2013 +0100
+++ b/QTfrontend/util/SDLInteraction.h	Fri Dec 06 00:56:56 2013 +0100
@@ -29,6 +29,13 @@
 #include <QStringList>
 #include <QSize>
 
+// workaround some strange Qt and SLD2 interaction
+#ifdef Q_OS_MAC
+#  ifdef MAC_OS_X_VERSION_MIN_REQUIRED
+#    undef MAC_OS_X_VERSION_MIN_REQUIRED
+#    define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
+#  endif
+#endif
 #include "SDL_mixer.h"
 
 /**