David Rose пре 23 година
родитељ
комит
ac5338eb0b

+ 5 - 1
panda/src/express/typedef.h

@@ -18,12 +18,16 @@
 #ifndef TYPEDEF_H
 #define TYPEDEF_H
 
-#include <pandabase.h>
+#include "pandabase.h"
+#include "numeric_types.h"
 
 typedef unsigned char uchar;
 typedef unsigned short ushort;
 typedef unsigned int uint;
 typedef unsigned long ulong;
 
+typedef PN_int64 longlong;
+typedef PN_uint64 ulonglong;
+
 
 #endif

+ 3 - 0
panda/src/pnmimagetypes/config_pnmimagetypes.cxx

@@ -29,6 +29,9 @@
 #ifdef HAVE_JPEG
   #include "pnmFileTypeJPG.h"
 #endif
+#ifdef HAVE_JPEG2000
+  #include "pnmFileTypeJPG2000.h"
+#endif
 #include "sgi.h"
 
 #include <config_pnmimage.h>

+ 4 - 0
panda/src/pnmimagetypes/pnmFileTypeJPG2000.h

@@ -29,8 +29,12 @@
 #include <windows.h>  // we need to include this before jpeglib.
 #endif
 
+#include "typedef.h"  // jasper requires this first.
 #include <jasper/jasper.h>
 
+// Undo jasper-inflicted damage.
+#undef bool
+
 ////////////////////////////////////////////////////////////////////
 //       Class : PNMFileTypeJPG2000
 // Description : For reading and writing Jpeg2000 files.