examples: Add missing stat macro for win32.

This commit is contained in:
Jean-Claude Michelou authored and Olaf Bergmann committed 2018-09-24 15:54:11 +02:00
1 parent 949d32da86
commit 01b2ec78fd
2 files changed
+6

No files matched your search

+3
View File
@@ -17,6 +17,9 @@
#ifdef _WIN32
#define strcasecmp _stricmp
#include "getopt.c"
#if !defined(S_ISDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#else
#include <unistd.h>
#include <sys/select.h>
+3
View File
@@ -20,6 +20,9 @@
#ifdef _WIN32
#define strcasecmp _stricmp
#include "getopt.c"
#if !defined(S_ISDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#else
#include <unistd.h>
#include <sys/select.h>