summaryrefslogtreecommitdiff
path: root/shared/buildInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/buildInfo.h')
-rw-r--r--shared/buildInfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/buildInfo.h b/shared/buildInfo.h
new file mode 100644
index 00000000..1c14caa5
--- /dev/null
+++ b/shared/buildInfo.h
@@ -0,0 +1,12 @@
+#ifndef BUILDINFO_H_INCLUDED
+#define BUILDINFO_H_INCLUDED
+
+namespace Utility
+{
+//determine build info
+//seems to be safer than checking for _WIN64 (defined on windows for 64-bit compilations only) while _WIN32 is always defined
+static const bool is32BitBuild = sizeof(void*) == 4;
+static const bool is64BitBuild = sizeof(void*) == 8;
+}
+
+#endif // BUILDINFO_H_INCLUDED
bgstack15