diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index c09735d8c5..cbb93e8cd6 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -24,8 +24,13 @@ #ifdef WIN32 +#ifdef ARRAYSIZE +#undef ARRAYSIZE +#endif #ifdef _WIN32_WCE #include <windows.h> +// winnt.h defines ARRAYSIZE, but we want our own one... +#undef ARRAYSIZE #undef GetCurrentDirectory #endif #include "backends/fs/abstract-fs.h" @@ -34,6 +39,8 @@ #include <stdlib.h> #ifndef _WIN32_WCE #include <windows.h> +// winnt.h defines ARRAYSIZE, but we want our own one... +#undef ARRAYSIZE #endif #include <tchar.h> |