Browse Source

maxegg: fix compilation errors with min/max

rdb 7 years ago
parent
commit
66c5d65bf6

+ 4 - 0
pandatool/src/maxegg/maxEgg.h

@@ -19,6 +19,10 @@
 #include <fcntl.h>
 #include <crtdbg.h>
 #include "errno.h"
+
+using std::min;
+using std::max;
+
 #include "Max.h"
 #include "eggGroup.h"
 #include "eggTable.h"

+ 3 - 0
pandatool/src/maxegg/maxEggLoader.cxx

@@ -26,6 +26,9 @@
 #include "eggPolysetMaker.h"
 #include "eggBin.h"
 
+using std::min;
+using std::max;
+
 #include <stdio.h>
 #include "Max.h"
 #include "istdplug.h"

+ 3 - 0
pandatool/src/maxprogs/maxEggImport.cxx

@@ -22,6 +22,9 @@
 // Include this before everything
 #include "pandatoolbase.h"
 
+using std::min;
+using std::max;
+
 // MAX includes
 #include "maxEggLoader.h"
 #include "Max.h"