瀏覽代碼

fix to continue support for compiling outside of panda

David Rose 24 年之前
父節點
當前提交
c0a62ab35e
共有 2 個文件被更改,包括 9 次插入1 次删除
  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