From: Thomas Debesse Date: Tue, 18 Jul 2017 09:18:03 +0000 (+0200) Subject: p3dlib.c: include “cmdlib.h” on non Windows platform X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0bed5ba99b9efb953557fde7738d597164f65e19;p=xonotic%2Fnetradiant.git p3dlib.c: include “cmdlib.h” on non Windows platform - implicit conditional declaration of function ‘Q_filelength’ and ‘Q_stricmp’ They come from “cmdlib.h”, so we must conditionally include it too. --- diff --git a/tools/quake3/q3data/p3dlib.c b/tools/quake3/q3data/p3dlib.c index 2da1ae9b..0b228e2f 100644 --- a/tools/quake3/q3data/p3dlib.c +++ b/tools/quake3/q3data/p3dlib.c @@ -31,9 +31,10 @@ #define MAX_POLYSETS 64 #if defined ( __linux__ ) || defined ( __APPLE__ ) -#define _strcmpi Q_stricmp -#define filelength Q_filelength -#define strlwr strlower + #include "cmdlib.h" + #define _strcmpi Q_stricmp + #define filelength Q_filelength + #define strlwr strlower #endif typedef struct {