mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-10 02:40:40 +03:00
examples: Add missing stat macro for win32.
This commit is contained in:
1 parent
949d32da86
commit
01b2ec78fd
2 files changed
+6
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user