summaryrefslogtreecommitdiffstats
path: root/util/system/platform.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/platform.cpp
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/platform.cpp')
-rw-r--r--util/system/platform.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/system/platform.cpp b/util/system/platform.cpp
index f08c85eb38c..9421235bb43 100644
--- a/util/system/platform.cpp
+++ b/util/system/platform.cpp
@@ -1,18 +1,18 @@
-#include "platform.h"
-
-#include <cstddef>
-
-static_assert(sizeof(char) == SIZEOF_CHAR, "incorrect SIZEOF_CHAR");
-static_assert(sizeof(short) == SIZEOF_SHORT, "incorrect SIZEOF_SHORT");
-static_assert(sizeof(int) == SIZEOF_INT, "incorrect SIZEOF_INT");
-static_assert(sizeof(long) == SIZEOF_LONG, "incorrect SIZEOF_LONG");
-static_assert(sizeof(long long) == SIZEOF_LONG_LONG, "incorrect SIZEOF_LONG_LONG");
-
-static_assert(sizeof(unsigned char) == SIZEOF_UNSIGNED_CHAR, "incorrect SIZEOF_UNSIGNED_CHAR");
-static_assert(sizeof(unsigned short) == SIZEOF_UNSIGNED_SHORT, "incorrect SIZEOF_UNSIGNED_SHORT");
-static_assert(sizeof(unsigned int) == SIZEOF_UNSIGNED_INT, "incorrect SIZEOF_UNSIGNED_INT");
-static_assert(sizeof(unsigned long) == SIZEOF_UNSIGNED_LONG, "incorrect SIZEOF_UNSIGNED_LONG");
-static_assert(sizeof(unsigned long long) == SIZEOF_UNSIGNED_LONG_LONG, "incorrect SIZEOF_UNSIGNED_LONG_LONG");
-
-static_assert(sizeof(void*) == SIZEOF_PTR, "incorrect SIZEOF_PTR");
-static_assert(sizeof(void*) == sizeof(size_t), "unsupported platform");
+#include "platform.h"
+
+#include <cstddef>
+
+static_assert(sizeof(char) == SIZEOF_CHAR, "incorrect SIZEOF_CHAR");
+static_assert(sizeof(short) == SIZEOF_SHORT, "incorrect SIZEOF_SHORT");
+static_assert(sizeof(int) == SIZEOF_INT, "incorrect SIZEOF_INT");
+static_assert(sizeof(long) == SIZEOF_LONG, "incorrect SIZEOF_LONG");
+static_assert(sizeof(long long) == SIZEOF_LONG_LONG, "incorrect SIZEOF_LONG_LONG");
+
+static_assert(sizeof(unsigned char) == SIZEOF_UNSIGNED_CHAR, "incorrect SIZEOF_UNSIGNED_CHAR");
+static_assert(sizeof(unsigned short) == SIZEOF_UNSIGNED_SHORT, "incorrect SIZEOF_UNSIGNED_SHORT");
+static_assert(sizeof(unsigned int) == SIZEOF_UNSIGNED_INT, "incorrect SIZEOF_UNSIGNED_INT");
+static_assert(sizeof(unsigned long) == SIZEOF_UNSIGNED_LONG, "incorrect SIZEOF_UNSIGNED_LONG");
+static_assert(sizeof(unsigned long long) == SIZEOF_UNSIGNED_LONG_LONG, "incorrect SIZEOF_UNSIGNED_LONG_LONG");
+
+static_assert(sizeof(void*) == SIZEOF_PTR, "incorrect SIZEOF_PTR");
+static_assert(sizeof(void*) == sizeof(size_t), "unsupported platform");