|
@@ -20,8 +20,16 @@
|
|
|
#define PRIMENUMBERGENERATOR_H
|
|
#define PRIMENUMBERGENERATOR_H
|
|
|
|
|
|
|
|
#include "dcbase.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"
|
|
#include "vector_int.h"
|
|
|
|
|
|
|
|
|
|
+#else
|
|
|
|
|
+typedef vector<int> vector_int;
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Class : PrimeNumberGenerator
|
|
// Class : PrimeNumberGenerator
|
|
|
// Description : This class generates a table of prime numbers, up to
|
|
// Description : This class generates a table of prime numbers, up to
|