From 7bd9bcf33ca6a77e2978dfbd5220c3eac59562cf Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 26 Apr 2002 23:50:42 +0000 Subject: [PATCH] Switched from #warning to #error (Borland compatible). Removed stricmp macros for Borland Unix build. --- src/xpdev/genwrap.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h index c0044d3890..606b0f411d 100644 --- a/src/xpdev/genwrap.h +++ b/src/xpdev/genwrap.h @@ -97,8 +97,7 @@ extern "C" { #elif defined(__unix__) #define PLATFORM_DESC "Unix" #else - #warning "Need to describe target platform" - #define PLATFORM_DESC "UNKNOWN" + #error "Need to describe target platform" #endif /*********************/ @@ -118,7 +117,7 @@ extern "C" { DLLEXPORT char* DLLCALL strupr(char* str); DLLEXPORT char* DLLCALL strlwr(char* str); DLLEXPORT char* DLLCALL strrev(char* str); - #if !defined(stricmp) + #if !defined(__BORLANDC__) && !defined(stricmp) #define stricmp(x,y) strcasecmp(x,y) #define strnicmp(x,y,z) strncasecmp(x,y,z) #endif @@ -146,7 +145,7 @@ extern "C" { #else /* Unsupported OS */ - #warning "Unsupported Target: Need some macros and/or function prototypes here." + #error "Unsupported Target: Need some macros and/or function prototypes here." #endif -- GitLab