Browse Source

fix for windows build prob

David Rose 24 years ago
parent
commit
00235c4147
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/pnmimagetypes/pnmFileTypeJPG.h

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

@@ -25,6 +25,10 @@
 #include <pnmReader.h>
 #include <pnmWriter.h>
 
+#if defined(_WIN32)
+#include <windows.h>  // we need to include this before jpeglib.
+#endif
+
 extern "C" {
 #include <jpeglib.h>
 #include <setjmp.h>