[quake2] error building rogue - the usual or something new? tried fixes
Nick Warne
nick at linicks.net
Thu Feb 24 15:27:14 EST 2005
On Thursday 24 February 2005 13:51, Fabrice Colin wrote:
> > 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.
Ah yes. I remember now I had same problems. After a 'locate nan.h' I just
copied
/usr/include/bits/nan.h
to my rogue directory
/home/nick/rogue/nan.h
and all built fine.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
More information about the quake2
mailing list