Simplified condition for defining S_ISREG

Co-authored-by: Farook Al-Sammarraie <farook@the-e-dev.com>
This commit is contained in:
MichaelSB 2022-06-22 14:54:52 +02:00 committed by GitHub
parent beb6e86b1e
commit 5f73f39ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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"