From: Brian P. <bri...@tu...> - 2005-05-16 01:32:24
|
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 |