From 722b909a879b6c50cd77abc73790a71b040e25ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej?= Date: Tue, 15 Sep 2015 00:11:04 +0200 Subject: [PATCH] Add include guards around SG_PATH_CHAR Such that one can redefine it (for example for cross-platform consistency) --- SimpleGlob.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SimpleGlob.h b/SimpleGlob.h index c83c985..baae00b 100644 --- a/SimpleGlob.h +++ b/SimpleGlob.h @@ -301,7 +301,9 @@ enum SG_FileType { # define INVALID_FILE_ATTRIBUTES ((DWORD)-1) #endif -#define SG_PATH_CHAR '\\' +#ifndef SG_PATH_CHAR +# define SG_PATH_CHAR '\\' +#endif /*! @brief Windows glob implementation. */ template @@ -381,7 +383,9 @@ struct SimpleGlobBase #else // !_WIN32 -#define SG_PATH_CHAR '/' +#ifndef SG_PATH_CHAR +# define SG_PATH_CHAR '/' +#endif /*! @brief Unix glob implementation. */ template