From 3dff5cdf522d6d02f618ea8b4701ff1c7f07283d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 22 Apr 2013 21:01:05 +1000 Subject: [PATCH] avoid including some bg_lib functions --- code/game/bg_lib.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/game/bg_lib.cpp b/code/game/bg_lib.cpp index fe09a22..0b1c713 100644 --- a/code/game/bg_lib.cpp +++ b/code/game/bg_lib.cpp @@ -5,6 +5,7 @@ // this file is excluded from release builds because of intrinsics +#ifdef WIN32 size_t strlen( const char *string ) { const char *s; @@ -78,15 +79,13 @@ char *strstr( const char *string, const char *strCharSet ) { return (char *)0; } -#ifndef _MSC_VER - +#if 0 int tolower( int c ) { if ( c >= 'A' && c <= 'Z' ) { c += 'a' - 'A'; } return c; } - #endif int toupper( int c ) { @@ -95,9 +94,7 @@ int toupper( int c ) { } return c; } - -//#ifndef _MSC_VER - +#endif // WIN32 #if 0