Browse Source

since we include dtool_config.h, no need to play games with command-line definitions

David Rose 21 years ago
parent
commit
e4b859c51d
2 changed files with 5 additions and 10 deletions
  1. 0 4
      pandatool/src/mayaprogs/Sources.pp
  2. 5 6
      pandatool/src/mayaprogs/mayaSavePview.h

+ 0 - 4
pandatool/src/mayaprogs/Sources.pp

@@ -104,10 +104,6 @@
   #define USE_PACKAGES maya
   #define USE_PACKAGES maya
   #define TARGET mayasavepview
   #define TARGET mayasavepview
 
 
-  // Since mayasavepview doesn't include pandatoolbase.h, we have to
-  // pass in HAVE_IOSTREAM on the command line.
-  #define EXTRA_CDEFS $[EXTRA_CDEFS] $[if $[HAVE_IOSTREAM],HAVE_IOSTREAM]
-
   #if $[WINDOWS_PLATFORM]
   #if $[WINDOWS_PLATFORM]
     #define dlllib mll
     #define dlllib mll
   #endif
   #endif

+ 5 - 6
pandatool/src/mayaprogs/mayaSavePview.h

@@ -29,6 +29,11 @@
 #define _BOOL 1
 #define _BOOL 1
 #endif
 #endif
 
 
+// Even though we don't include any Panda headers, it's safe to
+// include this one, since it only defines some macros that we need to
+// make this program platform-independent.
+#include "dtool_config.h"
+
 #ifdef HAVE_IOSTREAM
 #ifdef HAVE_IOSTREAM
 // This will ask Maya 5.0 or better to use the new <iostream> library
 // This will ask Maya 5.0 or better to use the new <iostream> library
 // instead of the old <iostream.h> library.
 // instead of the old <iostream.h> library.
@@ -39,12 +44,6 @@
 #include <maya/MPxCommand.h>
 #include <maya/MPxCommand.h>
 #include <maya/MObject.h>
 #include <maya/MObject.h>
 
 
-// Even though we don't include any Panda headers, it's safe to
-// include this one, since it only defines some macros that we need to
-// make this program platform-independent.
-#include "dtool_config.h"
-
-
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : MayaSavePview
 //       Class : MayaSavePview
 // Description : This class serves as a plug-in to Maya to save the
 // Description : This class serves as a plug-in to Maya to save the