Skip to content

Commit

Permalink
Fix compilation error, where DWORD is not defined
Browse files Browse the repository at this point in the history
As per https://msdn.microsoft.com/en-us/library/cc230318.aspx DWORD is equivalent to uint32_t
  • Loading branch information
nabijaczleweli committed Sep 14, 2015
1 parent 722b909 commit dc5508a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SimpleGlob.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ enum SG_Error {
// Unix glob functionality. On Unix we just use glob.
#ifdef _WIN32
# include <mbstring.h>
# include <stdint.h>
# define sg_strchr ::_mbschr
# define sg_strrchr ::_mbsrchr
# define sg_strlen ::_mbslen
Expand All @@ -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 <sys/types.h>
# include <sys/stat.h>
Expand Down

0 comments on commit dc5508a

Please sign in to comment.