Skip to content

Commit

Permalink
Fix compilation error, where all symbols used in WinAPI are not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Sep 15, 2015
1 parent 722b909 commit 7c994f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimpleGlob.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ enum SG_Error {
// on Windows we want to use MBCS aware string functions and mimic the
// Unix glob functionality. On Unix we just use glob.
#ifdef _WIN32
# include <mbstring.h>
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <stdint.h>
# define sg_strchr ::_mbschr
# define sg_strrchr ::_mbsrchr
# define sg_strlen ::_mbslen
Expand Down

0 comments on commit 7c994f2

Please sign in to comment.