Browse Source

Fix unguarded python-specific headers.

Maxwell Dreytser 1 year ago
parent
commit
d8775fa01e

+ 4 - 0
panda/src/linmath/lmatrix3_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-12
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LMatrix3, which are called
  * instead of any C++ methods with the same prototype.
@@ -26,3 +28,5 @@ public:
 };
 
 #include "lmatrix3_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lmatrix4_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-12
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LMatrix4, which are called
  * instead of any C++ methods with the same prototype.
@@ -26,3 +28,5 @@ public:
 };
 
 #include "lmatrix4_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lpoint2_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LPoint2, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lpoint2_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lpoint3_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LPoint3, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lpoint3_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lpoint4_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LPoint4, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lpoint4_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvecBase2_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVecBase2, which are called
  * instead of any C++ methods with the same prototype.
@@ -39,3 +41,5 @@ public:
 };
 
 #include "lvecBase2_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvecBase3_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVecBase3, which are called
  * instead of any C++ methods with the same prototype.
@@ -39,3 +41,5 @@ public:
 };
 
 #include "lvecBase3_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvecBase4_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVecBase4, which are called
  * instead of any C++ methods with the same prototype.
@@ -39,3 +41,5 @@ public:
 };
 
 #include "lvecBase4_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvector2_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVector2, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lvector2_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvector3_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVector3, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lvector3_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/linmath/lvector4_ext_src.h

@@ -11,6 +11,8 @@
  * @date 2013-09-13
  */
 
+#ifdef HAVE_PYTHON
+
 /**
  * This class defines the extension methods for LVector4, which are called
  * instead of any C++ methods with the same prototype.
@@ -27,3 +29,5 @@ public:
 };
 
 #include "lvector4_ext_src.I"
+
+#endif

+ 4 - 0
panda/src/putil/paramPyObject.cxx

@@ -13,6 +13,8 @@
 
 #include "paramPyObject.h"
 
+#ifdef HAVE_PYTHON
+
 TypeHandle ParamPyObject::_type_handle;
 
 /**
@@ -40,3 +42,5 @@ output(std::ostream &out) const {
   out << "<" << Py_TYPE(_value)->tp_name
       << " object at " << (void *)_value << ">";
 }
+
+#endif