diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2017-02-13 21:25:04 -0700 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2017-02-13 21:25:04 -0700 |
commit | 9d071d2a2cec9a7662a02669488569a017f0ea35 (patch) | |
tree | c83a623fbdff098339b66d21ea2e81f3f67344ae /zen/build_info.h | |
parent | 8.8 (diff) | |
download | FreeFileSync-9d071d2a2cec9a7662a02669488569a017f0ea35.tar.gz FreeFileSync-9d071d2a2cec9a7662a02669488569a017f0ea35.tar.bz2 FreeFileSync-9d071d2a2cec9a7662a02669488569a017f0ea35.zip |
8.9
Diffstat (limited to 'zen/build_info.h')
-rwxr-xr-x[-rw-r--r--] | zen/build_info.h | 67 |
1 files changed, 29 insertions, 38 deletions
diff --git a/zen/build_info.h b/zen/build_info.h index 31c1d456..f3f7f5b1 100644..100755 --- a/zen/build_info.h +++ b/zen/build_info.h @@ -1,38 +1,29 @@ -// ***************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 * -// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * -// ***************************************************************************** - -#ifndef BUILD_INFO_H_5928539285603428657 -#define BUILD_INFO_H_5928539285603428657 - -namespace zen -{ -//determine build info: defines ZEN_BUILD_32BIT or ZEN_BUILD_64BIT - -#ifdef ZEN_WIN - #ifdef _WIN64 //_WIN32 is defined by the compiler for both 32 and 64 bit builds, unlike _WIN64 - #define ZEN_BUILD_64BIT - #else - #define ZEN_BUILD_32BIT - #endif - -#else - #ifdef __LP64__ - #define ZEN_BUILD_64BIT - #else - #define ZEN_BUILD_32BIT - #endif -#endif - -#ifdef ZEN_BUILD_32BIT - static_assert(sizeof(void*) == 4, ""); -#endif - -#ifdef ZEN_BUILD_64BIT - static_assert(sizeof(void*) == 8, ""); -#endif -} - -#endif //BUILD_INFO_H_5928539285603428657 +// *****************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 *
+// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
+// *****************************************************************************
+
+#ifndef BUILD_INFO_H_5928539285603428657
+#define BUILD_INFO_H_5928539285603428657
+
+namespace zen
+{
+//determine build info: defines ZEN_BUILD_32BIT or ZEN_BUILD_64BIT
+
+ #ifdef __LP64__
+ #define ZEN_BUILD_64BIT
+ #else
+ #define ZEN_BUILD_32BIT
+ #endif
+
+#ifdef ZEN_BUILD_32BIT
+ static_assert(sizeof(void*) == 4, "");
+#endif
+
+#ifdef ZEN_BUILD_64BIT
+ static_assert(sizeof(void*) == 8, "");
+#endif
+}
+
+#endif //BUILD_INFO_H_5928539285603428657
|