Browse Source

# fix gcc compile errors

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@971 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 years ago
parent
commit
e400dc46ef
1 changed files with 10 additions and 0 deletions
  1. 10 0
      code/AssimpPCH.h

+ 10 - 0
code/AssimpPCH.h

@@ -147,4 +147,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include "qnan.h"
 
 
+// We need those constants, workaround for any platforms where nobody defined them yet
+#if (!defined SIZE_MAX)
+#	define SIZE_MAX (~((size_t)0))
+#endif
+
+#if (!defined UINT_MAX)
+#	define UINT_MAX (~((unsigned int)0))
+#endif
+
+
 #endif // !! ASSIMP_PCH_INCLUDED