X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25c0717a43f93ef3901a1e28762753902569da5b..d351525a9b21807a04810c96d24c657a857be830:/src/unix/joystick.cpp

diff --git a/src/unix/joystick.cpp b/src/unix/joystick.cpp
index 710841201a..2ea86f9a8d 100644
--- a/src/unix/joystick.cpp
+++ b/src/unix/joystick.cpp
@@ -9,10 +9,13 @@
 // Licence:   	wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "joystick.h"
 #endif
 
+// for compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/defs.h"
 
 #if wxUSE_JOYSTICK