Blame nvidia-texture-tools-2.0.8-wordsize.patch

2f0b868
diff -up nvidia-texture-tools/src/nvcore/DefsGnucLinux.h.orig nvidia-texture-tools/src/nvcore/DefsGnucLinux.h
2f0b868
--- nvidia-texture-tools/src/nvcore/DefsGnucLinux.h.orig	2012-05-18 22:17:43.367822764 -0300
2f0b868
+++ nvidia-texture-tools/src/nvcore/DefsGnucLinux.h	2012-05-18 22:19:50.709827759 -0300
2f0b868
@@ -2,6 +2,8 @@
2f0b868
 #error "Do not include this file directly."
2f0b868
 #endif
2f0b868
 
2f0b868
+#include <bits/wordsize.h>
2f0b868
+
2f0b868
 // Function linkage
2f0b868
 #define DLL_IMPORT
2f0b868
 #if __GNUC__ >= 4
2f0b868
@@ -58,8 +60,13 @@ typedef signed short        int16;
2f0b868
 typedef unsigned int        uint32;
2f0b868
 typedef signed int          int32;
2f0b868
 
2f0b868
+#if __WORDSIZE == 32
2f0b868
 typedef unsigned long long  uint64;
2f0b868
 typedef signed long long    int64;
2f0b868
+#else
2f0b868
+typedef unsigned long       uint64;
2f0b868
+typedef signed long         int64;
2f0b868
+#endif
2f0b868
 
2f0b868
 // Aliases
2f0b868
 typedef uint32              uint;