]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
improved include order to fix some compile errors using mingw g++
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Aug 2010 17:35:36 +0000 (17:35 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 10 Aug 2010 06:36:13 +0000 (08:36 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10384 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a892a876d60ec67da321e48e31dc80b95fd6d9aa

common.c
console.c
fs.c
snd_win.c
sys_win.c

index b94f0973ff39724ecf498c73999bbc77c70b99fe..9bcaeb8c407b92b148d6bccfbcb059eb13825b68 100644 (file)
--- a/common.c
+++ b/common.c
@@ -19,14 +19,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // common.c -- misc functions used in client and server
 
-#include "quakedef.h"
-
 #include <stdlib.h>
 #include <fcntl.h>
 #ifndef WIN32
 #include <unistd.h>
 #endif
 
+#include "quakedef.h"
+
 cvar_t registered = {0, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"};
 cvar_t cmdline = {0, "cmdline","0", "contains commandline the engine was launched with"};
 
index e23de5bba4bed7e0d5a11f54692462f74a214e6a..3ce37373d3067e5c1e017266b6176344529a8897 100644 (file)
--- a/console.c
+++ b/console.c
@@ -19,13 +19,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // console.c
 
-#include "quakedef.h"
-
 #if !defined(WIN32) || defined(__MINGW32__)
 # include <unistd.h>
 #endif
 #include <time.h>
 
+#include "quakedef.h"
+
 // for u8_encodech
 #include "ft2.h"
 
diff --git a/fs.c b/fs.c
index a2f057c9b5aca4b1d803ca7d1cd49f140ec40217..13407aa7507d81a2dc590f1ce6c622f315cbdefd 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -22,8 +22,6 @@
                Boston, MA  02111-1307, USA
 */
 
-#include "quakedef.h"
-
 #include <limits.h>
 #include <fcntl.h>
 
@@ -37,6 +35,8 @@
 # include <unistd.h>
 #endif
 
+#include "quakedef.h"
+
 #include "fs.h"
 #include "wad.h"
 
index a7a2adff12571818a8f74629f8e821498585c7bf..080122487a821d438a0e25eaad3070e4139294f0 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -17,8 +17,6 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
-#include "quakedef.h"
-#include "snd_main.h"
 
 #ifdef SUPPORTDIRECTX
 #ifndef DIRECTSOUND_VERSION
@@ -31,6 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <dsound.h>
 #endif
 
+#include "qtypes.h"
+#include "quakedef.h"
+#include "snd_main.h"
+
 // ==============================================================================
 
 #ifndef _WAVEFORMATEXTENSIBLE_
index 4adaf69287e3d34e6e6e70266a953da764bb6e1e..3b48f18d0eebfe9ba0af6f9e7d92af02d85a1786 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -19,16 +19,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // sys_win.c -- Win32 system interface code
 
-#include "quakedef.h"
 #include <windows.h>
 #include <mmsystem.h>
+#include <direct.h>
 #ifdef SUPPORTDIRECTX
 #include <dsound.h>
 #endif
+
+#include "qtypes.h"
+
+#include "quakedef.h"
 #include "errno.h"
 #include "resource.h"
 #include "conproc.h"
-#include "direct.h"
 
 HANDLE                         hinput, houtput;