fixed endianess issue in goat3d file reading
[deeprace] / libs / goat3d / src / chunk.h
index 505c150..19c1bbd 100644 (file)
@@ -1,6 +1,6 @@
 /*
 goat3d - 3D scene, and animation file format library.
-Copyright (C) 2013-2018  John Tsiombikas <nuclear@member.fsf.org>
+Copyright (C) 2013-2023  John Tsiombikas <nuclear@member.fsf.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -18,15 +18,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef CHUNK_H_
 #define CHUNK_H_
 
-#ifndef _MSC_VER
-#ifdef __sgi
-#include <inttypes.h>
-#else
-#include <stdint.h>
-#endif
-#else
-typedef unsigned __int32 uint32_t;
-#endif
+#include "util.h"
 
 enum {
        CNK_INVALID,            /* this shouldn't appear in files */