mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
Merge 16ca5a038b
into 20474e9c91
This commit is contained in:
commit
8f73cc2be5
|
@ -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)))))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user