Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorArtyom Polkovnikov <artyom.polkovnikov@gmail.com>2014-12-30 20:29:34 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:35:55 +0300
commitbc8a38a402e5c0a2d2a03804a68f097a04804582 (patch)
tree7e2e4700b47ed4a188208f0e9c2ebfb7878d9f3c /std
parentae0f11125a06d163a21f621e15f12102c544a683 (diff)
[std] Create ALIGNOF macro to support MSVC <= 2013.
Diffstat (limited to 'std')
-rw-r--r--std/alignof.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/alignof.hpp b/std/alignof.hpp
new file mode 100644
index 0000000000..3a5e1b2b70
--- /dev/null
+++ b/std/alignof.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+#if defined(_MSC_VER) && (_MSC_VER <= 1800)
+ #define ALIGNOF __alignof
+#else
+ #define ALIGNOF alignof
+#endif