From 0bed5ba99b9efb953557fde7738d597164f65e19 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 18 Jul 2017 11:18:03 +0200 Subject: [PATCH] =?utf8?q?p3dlib.c:=20include=20=E2=80=9Ccmdlib.h=E2=80=9D?= =?utf8?q?=20on=20non=20Windows=20platform?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - implicit conditional declaration of function ‘Q_filelength’ and ‘Q_stricmp’ They come from “cmdlib.h”, so we must conditionally include it too. --- tools/quake3/q3data/p3dlib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 { -- 2.39.2