1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00
This commit is contained in:
Borim7 2023-09-02 17:41:29 -06:00 committed by GitHub
commit 8f73cc2be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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