1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00

fix issues when building with mingw and msys

This commit is contained in:
Matthias 2015-04-04 13:59:33 +02:00
parent 6742f6233d
commit 16ca5a038b
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,7 @@
void operator=(const TypeName&)
// Starting with Visual C++ 2005, WinNT.h includes ARRAYSIZE.
#if !defined(_MSC_VER) || _MSC_VER < 1400
#ifndef ARRAYSIZE
#define ARRAYSIZE(a) \
((sizeof(a) / sizeof(*(a))) / \
static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))

View File

@ -69,7 +69,10 @@
#endif
/* file I/O */
#define PATH_MAX 1024
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#define access _access
#define getcwd _getcwd
#define open _open