aboutsummaryrefslogtreecommitdiff
path: root/src/StormPort.h
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-12-21 09:24:54 +0100
committerLadislav Zezula <zezula@volny.cz>2020-12-21 09:24:54 +0100
commit1f11e8fba7ac12457b4f67ec43597562a1732b7c (patch)
treeafddf11420f31f583e1bab6ae87f2e2c3bc45342 /src/StormPort.h
parent7a0fcab2d24a8be064834347e4c9e0bd9ba574cb (diff)
_countof macro should now work for all builds
Diffstat (limited to 'src/StormPort.h')
-rw-r--r--src/StormPort.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StormPort.h b/src/StormPort.h
index 6773975..ee00db8 100644
--- a/src/StormPort.h
+++ b/src/StormPort.h
@@ -197,10 +197,6 @@
#define MAX_PATH 1024
#endif
- #ifndef _countof
- #define _countof(x) (sizeof(x) / sizeof(x[0]))
- #endif
-
#define WINAPI
#define FILE_BEGIN SEEK_SET
@@ -257,6 +253,10 @@
#define ERROR_FILE_CORRUPT 1004 // No such error code under Linux
#endif
+#ifndef _countof
+ #define _countof(x) (sizeof(x) / sizeof(x[0]))
+#endif
+
//-----------------------------------------------------------------------------
// Swapping functions