Browse Source

Fix for windows. Sheesh, they don't seem to provide stdint.h.

rdb 16 years ago
parent
commit
74072522d5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      direct/src/plugin_standalone/p3dEmbed.cxx

+ 6 - 1
direct/src/plugin_standalone/p3dEmbed.cxx

@@ -14,12 +14,17 @@
 
 #include "p3d_plugin_composite1.cxx"
 #include "panda3dBase.cxx"
-#include <stdint.h>
 
+#ifdef _WIN32
+const unsigned long p3d_offset = 0xFF3D3D00;
+#else
+#include <stdint.h>
 const uint32_t p3d_offset = 0xFF3D3D00;
+#endif
 
 int
 main(int argc, char *argv[]) {
   Panda3DBase program(true);
   return program.run_embedded(p3d_offset, argc, argv);
 }
+