diff --git a/direct/src/dcparser/dcType.h b/direct/src/dcparser/dcType.h index 928dcbceff..2bf7e7a702 100755 --- a/direct/src/dcparser/dcType.h +++ b/direct/src/dcparser/dcType.h @@ -22,10 +22,22 @@ #include "dcbase.h" #include "dcPackerInterface.h" +#ifdef HAVE_PYTHON + +#undef HAVE_LONG_LONG // NSPR and Python both define this. +#include + +// We only need these headers if we are also building a Python interface. +#include "datagram.h" +#include "datagramIterator.h" + +#endif // HAVE_PYTHON + class DCSimpleType; class DCClassType; class DCArrayType; class DCTypedefType; +class HashGenerator; //////////////////////////////////////////////////////////////////// // Class : DCType