Ronny V. Vindenes wrote:
fre, 13,.05.2005 kl. 08.56 -0400, skrev David Kesselring:

I'm trying to build the software only mesa on cygwin but have a compile
error for a missing definition. Would any of you know where to look for
"M_E" from the following snip?

t_vp_build.c, build_fog()

case GL_EXP:     emit_op1(p, VP_OPCODE_ABS, tmp, 0, input);
emit_op2(p, VP_OPCODE_MUL, tmp, 0, tmp, swizzle1(params,X));
emit_op2(p, VP_OPCODE_POW, fog, WRITEMASK_X,
register_const1f(p, M_E), negate(tmp));
                   ^^^


M_E is the mathematical constant e, usually defined in <math.h>

from glibc :
# define M_E            2.7182818284590452354   /* e */

I'm adding

#ifndef M_E
#define M_E (2.7182818284590452354)
#endif

to mesa/src/main/imports.h now.

-Brian



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to