Browse Source

Fixed Linux build.

bkaradzic 12 years ago
parent
commit
5a2f097fcc
2 changed files with 4 additions and 8 deletions
  1. 4 7
      examples/common/entry/entry_linux.cpp
  2. 0 1
      examples/common/entry/entry_p.h

+ 4 - 7
examples/common/entry/entry_linux.cpp

@@ -7,19 +7,16 @@
 
 #if BX_PLATFORM_LINUX
 
-#include "bgfxplatform.h"
-#include <string.h>
-#include <stdlib.h>
-
 #define XK_MISCELLANY
 #define XK_LATIN1
 #include <X11/keysymdef.h>
-
-#include <bx/thread.h>
-#include <bx/os.h>
+#include <bgfxplatform.h>
 
 #undef None
 #include "entry_p.h"
+#include <bx/thread.h>
+#include <bx/os.h>
+#include <string.h> // memset
 
 #define DEFAULT_WIDTH 1280
 #define DEFAULT_HEIGHT 720

+ 0 - 1
examples/common/entry/entry_p.h

@@ -6,7 +6,6 @@
 #ifndef __ENTRY_PRIVATE_H__
 #define __ENTRY_PRIVATE_H__
 
-#include <bgfxplatform.h>
 #include <bx/spscqueue.h>
 
 #include "entry.h"