summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-13 05:35:15 +0000
committermidipix <writeonce@midipix.org>2016-12-13 10:31:17 -0500
commitecc2ff706522461325e597be72f52bfdee818e5a (patch)
tree5d47f27359dd074c24b9d8d328565b47c09d58ba /include
parent32f3d4c1f563f26a3bdae992be714c1351d425c0 (diff)
downloadpsxtypes-ecc2ff706522461325e597be72f52bfdee818e5a.tar.bz2
psxtypes-ecc2ff706522461325e597be72f52bfdee818e5a.tar.xz
perform the matching toolchain sanity check as the very final step.
Diffstat (limited to 'include')
-rw-r--r--include/psxtypes/__nttypes.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/include/psxtypes/__nttypes.h b/include/psxtypes/__nttypes.h
index 852fa1e..1da68ab 100644
--- a/include/psxtypes/__nttypes.h
+++ b/include/psxtypes/__nttypes.h
@@ -1,21 +1,3 @@
-/* verify matching compiler */
-#if defined(__NT32)
-
-typedef char __sanity[sizeof(int) - sizeof(void *) + 1];
-
-#elif defined(__NT64)
-
-#ifndef _NT64_SANITY_CHECKED
-#define _NT64_SANITY_CHECKED
-
-struct __sanity_struct {int i; void * p;};
-typedef char __sanity[sizeof(struct __sanity_struct) - 2*sizeof(long long) + 1];
-
-#endif
-
-#endif
-
-
/*compiler directives: unified syntax */
#if defined(__GNUC__)
#include "compiler/__nt_compiler_gcc.h"
@@ -32,3 +14,18 @@ typedef char __sanity[sizeof(struct __sanity_struct) - 2*sizeof(long long) + 1];
#include "arch/nt64/ntalltypes.h"
#endif
#endif
+
+
+/* verify matching compiler */
+#if defined(__NT32)
+typedef char __sanity[sizeof(int) - sizeof(void *) + 1];
+#endif
+
+
+#if defined(__NT64)
+#ifndef _NT64_SANITY_CHECKED
+#define _NT64_SANITY_CHECKED
+struct __sanity_struct {int i; void * p;};
+typedef char __sanity[sizeof(struct __sanity_struct) - 2*sizeof(long long) + 1];
+#endif
+#endif