From 8461fb0cb939ad86d696492d9c9c0c18bea86b5c Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 25 Oct 2018 23:31:10 +0000 Subject: [PATCH] Use _strlwr and _strupr with MSVC git-svn-id: https://svn.eduke32.com/eduke32@7105 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index e41f2c4a2..5a6236872 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -1153,8 +1153,13 @@ char *Bstrtolower(char *str); #define Bwildmatch wildmatch #ifdef _WIN32 -# define Bstrlwr strlwr -# define Bstrupr strupr +# ifdef _MSC_VER +# define Bstrlwr _strlwr +# define Bstrupr _strupr +# else +# define Bstrlwr strlwr +# define Bstrupr strupr +# endif #else char *Bstrlwr(char *); char *Bstrupr(char *);