Selaa lähdekoodia

Ask Maya to use the new <iostream> interface, which more people these days are likely to have installed.

David Rose 21 vuotta sitten
vanhempi
sitoutus
be13907577
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      pandatool/src/mayaprogs/mayaSavePview.h

+ 9 - 0
pandatool/src/mayaprogs/mayaSavePview.h

@@ -19,11 +19,20 @@
 #ifndef MAYASAVEPVIEW_H
 #define MAYASAVEPVIEW_H
 
+// We don't want to include pre_maya_include.h here, since that would
+// necessitate linking with Pandatool's libmaya.dll, which would in
+// turn bring in a lot of stuff from panda that we don't really need.
+// Instead, we'll just define the Maya symbols we require here.
+
 // Maya will try to typedef bool unless this symbol is defined.
 #ifndef _BOOL
 #define _BOOL 1
 #endif
 
+// This will ask Maya 5.0 or better to use the new <iostream> library
+// instead of the old <iostream.h> library.
+#define REQUIRE_IOSTREAM
+
 #include <maya/MArgList.h>
 #include <maya/MPxCommand.h>
 #include <maya/MObject.h>