compat: define S_ISREG macro for Windows
Windows simply does not provide this helper macro, so I added
one to flb_compat.h.
/* Windows compatibility utils */
#ifdef _MSC_VER
-#define PATH_MAX MAX_PATH
-
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <windows.h>
+#define PATH_MAX MAX_PATH
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+
static inline int getpagesize(void)
{
SYSTEM_INFO info;
