From 7c994f206b6c21a296d141fb1f8a992bd5cf1819 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 all symbols used in WinAPI are not defined --- SimpleGlob.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SimpleGlob.h b/SimpleGlob.h index baae00b..798ab1e 100644 --- a/SimpleGlob.h +++ b/SimpleGlob.h @@ -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 +# define WIN32_LEAN_AND_MEAN +# include +# include # define sg_strchr ::_mbschr # define sg_strrchr ::_mbsrchr # define sg_strlen ::_mbslen