]> git.mxchange.org Git - flightgear.git/commitdiff
Frederic: MSVC doesn't have stdint.h. I just copied the code found in net_gui.hxx...
authorehofman <ehofman>
Sun, 31 Jul 2005 08:13:09 +0000 (08:13 +0000)
committerehofman <ehofman>
Sun, 31 Jul 2005 08:13:09 +0000 (08:13 +0000)
src/MultiPlayer/mpmessages.hxx

index b0f91b268331b0b800b0fa6d7de698185941e0ec..4a105aadec79e6b6e46c12db277674e79e625e00 100644 (file)
 *
 ******************************************************************/
 
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#elif defined( _MSC_VER ) || defined(__MINGW32__) || defined(sun)
+typedef signed short     int16_t;
+typedef signed int       int32_t;
+typedef unsigned short   uint16_t;
+typedef unsigned int     uint32_t;
+#else
+# error "Port me! Platforms that don't have <stdint.h> need to define int8_t, et. al."
+#endif
 #include <plib/sg.h>
 
 // Message identifiers