Browse Source

support Irix build (without HAVE_IOSTREAM)

David Rose 21 years ago
parent
commit
3e461e03ae
2 changed files with 7 additions and 1 deletions
  1. 4 0
      pandatool/src/mayaprogs/Sources.pp
  2. 3 1
      pandatool/src/mayaprogs/mayaSavePview.h

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

@@ -104,6 +104,10 @@
   #define USE_PACKAGES maya
   #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]
     #define dlllib mll
   #endif

+ 3 - 1
pandatool/src/mayaprogs/mayaSavePview.h

@@ -29,9 +29,11 @@
 #define _BOOL 1
 #endif
 
+#ifdef HAVE_IOSTREAM
 // This will ask Maya 5.0 or better to use the new <iostream> library
 // instead of the old <iostream.h> library.
-#define REQUIRE_IOSTREAM 1
+#define REQUIRE_IOSTREAM
+#endif  // HAVE_IOSTREAM
 
 #include <maya/MArgList.h>
 #include <maya/MPxCommand.h>