diff options
author | Jon TURNEY <[email protected]> | 2011-06-29 12:43:11 +0100 |
---|---|---|
committer | Jon TURNEY <[email protected]> | 2011-06-29 14:29:26 +0100 |
commit | 8f0a331040fc6fa700ab2c5f96061844a2289599 (patch) | |
tree | d2ad642f4c1ee4f6c2fa0f9acbded46d87b73969 /src/gallium/drivers | |
parent | 475685ce5079877be5fc1fbcb8206dff4b79b0f3 (diff) |
i915g: Move definition of M_PI in i915_fpc_translate.c
Move defintion of M_PI (for the benefit of <math.h> which do not define it), to
before the first use of it
Signed-off-by: Jon TURNEY <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/i915/i915_fpc_translate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index ab09d56ec77..93fe453e9df 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -41,6 +41,9 @@ #include "draw/draw_vertex.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif /** * Simple pass-through fragment shader to use when we don't have @@ -442,11 +445,6 @@ emit_simple_arith_swap2(struct i915_fp_compile *p, emit_simple_arith(p, &inst2, opcode, numArgs, fs); } - -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - /* * Translate TGSI instruction to i915 instruction. * |