From 21b6c55de0b3ab625cdb140ab9e6b4facf9df6e2 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 26 Jan 2002 14:50:52 +0000 Subject: [PATCH] Avoid redefinition of stricmp in Unix builds (with uifc.h). --- src/sbbs3/smbwrap.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/smbwrap.h b/src/sbbs3/smbwrap.h index 9fe74b0e44..804cb89019 100644 --- a/src/sbbs3/smbwrap.h +++ b/src/sbbs3/smbwrap.h @@ -71,9 +71,11 @@ #define SH_DENYNO 2 // no locks #define SH_DENYRW F_WRLCK // exclusive lock #define SH_DENYWR F_RDLCK // shareable lock - - #define stricmp(x,y) strcasecmp(x,y) - #define strnicmp(x,y,z) strncasecmp(x,y,z) + + #if !defined(stricmp) + #define stricmp(x,y) strcasecmp(x,y) + #define strnicmp(x,y,z) strncasecmp(x,y,z) + #endif #define chsize(fd,size) ftruncate(fd,size) #endif -- GitLab