Browse Source

fix to continue support for compiling outside of panda

David Rose 24 years ago
parent
commit
c0a62ab35e
2 changed files with 9 additions and 1 deletions
  1. 1 1
      direct/src/dcparser/dcbase.h
  2. 8 0
      direct/src/dcparser/primeNumberGenerator.h

+ 1 - 1
direct/src/dcparser/dcbase.h

@@ -37,7 +37,7 @@
 #include "pvector.h"
 #include "pmap.h"
 
-#else
+#else  // WITHIN_PANDA
 
 #ifdef WIN32
 /* C4786: 255 char debug symbols */

+ 8 - 0
direct/src/dcparser/primeNumberGenerator.h

@@ -20,8 +20,16 @@
 #define PRIMENUMBERGENERATOR_H
 
 #include "dcbase.h"
+
+#ifdef WITHIN_PANDA
+// We only have the vector_int header file if we're compiling this
+// package within the normal Panda environment.
 #include "vector_int.h"
 
+#else
+typedef vector<int> vector_int;
+#endif
+
 ////////////////////////////////////////////////////////////////////
 //       Class : PrimeNumberGenerator
 // Description : This class generates a table of prime numbers, up to