]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
p3dlib.c: include “cmdlib.h” on non Windows platform
authorThomas Debesse <dev@illwieckz.net>
Tue, 18 Jul 2017 09:18:03 +0000 (11:18 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 1 Aug 2017 14:31:20 +0000 (16:31 +0200)
- 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

index 2da1ae9b6aed31e5b3a64791d518cb2f5709c667..0b228e2fad9a439039719a03eea366d726598465 100644 (file)
 #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
 {