projects
/
platform
/
upstream
/
libconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9f23d7
)
Support Visual Studio 2015.
author
Martin
<noone@nowhere.com>
Sun, 9 Aug 2015 12:00:27 +0000
(14:00 +0200)
committer
Martin
<noone@nowhere.com>
Sun, 9 Aug 2015 12:00:27 +0000
(14:00 +0200)
lib/wincompat.h
patch
|
blob
|
history
diff --git
a/lib/wincompat.h
b/lib/wincompat.h
index
30b5619
..
ddf950f
100644
(file)
--- a/
lib/wincompat.h
+++ b/
lib/wincompat.h
@@
-34,12
+34,17
@@
#define fileno _fileno
#define fstat _fstat
+#define stat _stat // struct stat for fstat()
#define snprintf _snprintf
-#if
ndef __MINGW32__
+#if
!defined(__MINGW32__) && _MSC_VER < 1800
#define atoll _atoi64
#define strtoull _strtoui64
-#endif /* __MINGW32__ */
+#endif
+
+#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
+#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+#endif
#endif