summaryrefslogtreecommitdiff
path: root/src/sanity.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:16:45 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:33:42 -0700
commit7af4c5b5c561362cb1135ab504095ae667a9270a (patch)
tree49ffd3008d7634ba36f3951493a68e928407ce89 /src/sanity.hpp
parent8d7f1dadeeb1dc1609b72de5a4ee3a5247b0e9e6 (diff)
downloadtmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.gz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.bz2
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.xz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.zip
This is more reliable
Diffstat (limited to 'src/sanity.hpp')
-rw-r--r--src/sanity.hpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/sanity.hpp b/src/sanity.hpp
index eb4a412..c00d9b2 100644
--- a/src/sanity.hpp
+++ b/src/sanity.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_SANITY_HPP
-#define TMWA_SANITY_HPP
+#pragma once
// sanity.hpp - Keep spatulas out of the build environment.
//
// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
@@ -24,30 +23,28 @@
namespace tmwa
{
-# ifndef __cplusplus
-# error "Please compile in C++ mode"
-# endif // __cplusplus
+#ifndef __cplusplus
+# error "Please compile in C++ mode"
+#endif // __cplusplus
-# if __GNUC__ < 4
-# error "Your compiler is absolutely ancient. You have no chance ..."
-# endif // __GNUC__ < 4
+#if __GNUC__ < 4
+# error "Your compiler is absolutely ancient. You have no chance ..."
+#endif // __GNUC__ < 4
-# if __GNUC__ == 4
+#if __GNUC__ == 4
// clang identifies as GCC 4.2, but is mostly okay.
// Until a bug-free release of it happens, though, I won't recommend it.
// clang 3.2 is the minimum that the CI builds are using
-# if __GNUC_MINOR__ < 7 && !defined(__clang__)
-# error "Please upgrade to at least GCC 4.7"
-# endif // __GNUC_MINOR__ < 7 && !defined(__clang__)
-# endif // __GNUC__ == 4
+# if __GNUC_MINOR__ < 7 && !defined(__clang__)
+# error "Please upgrade to at least GCC 4.7"
+# endif // __GNUC_MINOR__ < 7 && !defined(__clang__)
+#endif // __GNUC__ == 4
-# if not defined(__i386__) and not defined(__x86_64__)
+#if not defined(__i386__) and not defined(__x86_64__)
// Known platform dependencies:
// endianness for the [RW]FIFO.* macros
// possibly, some signal-handling
// some integer sizes (partially fixed for the x32 ABI)
-# error "Unsupported platform, we use x86 / amd64 only"
-# endif // not __i386__
+# error "Unsupported platform, we use x86 / amd64 only"
+#endif // not __i386__
} // namespace tmwa
-
-#endif // TMWA_SANITY_HPP