Browse Source

bracket HAVE_PYTHON

David Rose 21 years ago
parent
commit
aa5d035340
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/dcparser/dcClass.cxx

+ 2 - 0
direct/src/dcparser/dcClass.cxx

@@ -459,6 +459,7 @@ direct_update(PyObject *distobj, const string &field_name,
 }
 #endif  // HAVE_PYTHON
 
+#ifdef HAVE_PYTHON
 ////////////////////////////////////////////////////////////////////
 //     Function: DCClass::pack_required_field
 //       Access: Published
@@ -486,6 +487,7 @@ pack_required_field(Datagram &datagram, PyObject *distobj,
   datagram.append_data(packer.get_data(), packer.get_length());
   return true;
 }
+#endif  // HAVE_PYTHON
 
 #ifdef HAVE_PYTHON
 ////////////////////////////////////////////////////////////////////