summaryrefslogtreecommitdiff
path: root/games/quake2-3zb2/files/patch-q_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'games/quake2-3zb2/files/patch-q_shared.h')
-rw-r--r--games/quake2-3zb2/files/patch-q_shared.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/games/quake2-3zb2/files/patch-q_shared.h b/games/quake2-3zb2/files/patch-q_shared.h
new file mode 100644
index 000000000000..075aaa5bebe7
--- /dev/null
+++ b/games/quake2-3zb2/files/patch-q_shared.h
@@ -0,0 +1,32 @@
+--- ./q_shared.h.orig Sat Dec 30 19:09:03 2006
++++ ./q_shared.h Sat Dec 30 19:09:23 2006
+@@ -23,7 +23,7 @@
+ #include <stdlib.h>
+ #include <time.h>
+
+-#if defined _M_IX86 && !defined C_ONLY
++#if (defined _M_IX86 || defined __i386__) && !defined C_ONLY && !defined __sun__
+ #define id386 1
+ #else
+ #define id386 0
+@@ -128,7 +128,7 @@
+ // microsoft's fabs seems to be ungodly slow...
+ //float Q_fabs (float f);
+ //#define fabs(f) Q_fabs(f)
+-#if !defined C_ONLY
++#if !defined C_ONLY && !defined __unix__ && !defined __sgi
+ extern long Q_ftol( float f );
+ #else
+ #define Q_ftol( f ) ( long ) (f)
+@@ -1155,5 +1155,11 @@
+ extern int vidref_val;
+ // PGM
+ // ==================
++
++#ifdef __unix__
++#define stricmp strcasecmp
++#define _stricmp strcasecmp
++#define _strnicmp strncasecmp
++#endif
+
+ #endif