[quake2] error building rogue - the usual or something new? tried fixes
Fabrice Colin
fabrice.colin at ntlworld.com
Thu Feb 24 08:51:53 EST 2005
Philip Dillon-Thiselton wrote:
> When I try to compile the rogue extention i get this error:
>
> gcc -Wall -pipe -Dstricmp=strcasecmp -O2 -ffast-math -funroll-loops
> -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing
> -DLINUX_VERSION='"3.21+r0.16"' -fPIC -o releasei386/rogue/dm_ball.o -c
> src/rogue/dm_ball.c
> In file included from src/rogue/dm_ball.c:5:
> src/rogue/g_local.h:25:17: nan.h: No such file or directory
>
> ...
I use the following patch to build my RPMs on Linux :
--- src/rogue/g_local.h Sun Dec 1 13:18:40 2002
+++ src/rogue/g_local.h Sun Dec 1 13:19:35 2002
@@ -22,13 +22,13 @@
//==================================================================
#ifndef _WIN32
-#include <nan.h>
+#include <bits/nan.h>
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))
#ifdef __sun__
#define _isnan(a) (NaN((a)))
#else
-#define _isnan(a) ((a)==NAN)
+#define _isnan(a) isnan(a)
#endif
#endif
I hope this helps.
Fabrice
More information about the quake2
mailing list