From dc5508a54bcfe97532edf8003e9d8dcac870f001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej?= Date: Tue, 15 Sep 2015 00:18:59 +0200 Subject: [PATCH] Fix compilation error, where DWORD is not defined As per https://msdn.microsoft.com/en-us/library/cc230318.aspx DWORD is equivalent to uint32_t --- SimpleGlob.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SimpleGlob.h b/SimpleGlob.h index baae00b..81e1cd3 100644 --- a/SimpleGlob.h +++ b/SimpleGlob.h @@ -166,6 +166,7 @@ enum SG_Error { // Unix glob functionality. On Unix we just use glob. #ifdef _WIN32 # include +# include # define sg_strchr ::_mbschr # define sg_strrchr ::_mbsrchr # define sg_strlen ::_mbslen @@ -177,6 +178,9 @@ enum SG_Error { # define sg_strcmp ::_mbscmp # define sg_strcasecmp ::_mbsicmp # define SOCHAR_T unsigned char +# ifndef _WINDOWS_ +typedef ::uint32_t DWORD; +# endif #else # include # include