summaryrefslogtreecommitdiff
path: root/src/game/bg_lib.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-12-08 21:45:34 +0000
committerTim Angus <tim@ngus.net>2005-12-08 21:45:34 +0000
commitdedac77b31fc2ddf806e9a70a4a6b536c9a79d35 (patch)
tree90637a7d1f1d43e1784f9c4fec2a26672f3ec904 /src/game/bg_lib.c
parent10107e224bbaa2a39cd1296905d27e4d927cf207 (diff)
* Merged in a bunch of game side fixed from ioq3
Diffstat (limited to 'src/game/bg_lib.c')
-rw-r--r--src/game/bg_lib.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c
index b4ba5696..d940c6d8 100644
--- a/src/game/bg_lib.c
+++ b/src/game/bg_lib.c
@@ -51,6 +51,8 @@
* SUCH DAMAGE.
*/
+#include "bg_lib.h"
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)qsort.c 8.1 (Berkeley) 6/4/93";
@@ -312,9 +314,6 @@ char *strstr( const char *string, const char *strCharSet )
#endif // bk001211
-// bk001120 - presumably needed for Mac
-//#if !defined(_MSC_VER) && !defined(__linux__)
-// bk001127 - undid undo
#if defined ( Q3_VM )
int tolower( int c )
@@ -335,7 +334,6 @@ int toupper( int c )
}
#endif
-//#ifndef _MSC_VER
void *memmove( void *dest, const void *src, size_t count )
{
@@ -1469,10 +1467,6 @@ double _atof( const char **stringPtr )
}
-// bk001120 - presumably needed for Mac
-//#if !defined ( _MSC_VER ) && ! defined ( __linux__ )
-
-// bk001127 - undid undo
#if defined ( Q3_VM )
int atoi( const char *string )
@@ -1870,7 +1864,7 @@ reswitch:
case 'f':
AddFloat( &buf_p, *(double *)arg, width, prec );
-#ifdef __LCC__
+#ifdef Q3_VM
arg += 1; // everything is 32 bit in my compiler
#else
arg += 2;