mirror of https://github.com/CrowCpp/Crow.git
Simplified condition for defining S_ISREG
Co-authored-by: Farook Al-Sammarraie <farook@the-e-dev.com>
This commit is contained in:
parent
beb6e86b1e
commit
5f73f39ea7
|
@ -6,13 +6,11 @@
|
|||
#include <sstream>
|
||||
#if defined(_MSC_VER)
|
||||
#define _CRT_INTERNAL_NONSTDC_NAMES 1
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
||||
#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
#else
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "crow/http_request.h"
|
||||
#include "crow/ci_map.h"
|
||||
|
|
Loading…
Reference in New Issue