diff options
author | Eric Anholt <[email protected]> | 2006-02-11 02:59:38 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2006-02-11 02:59:38 +0000 |
commit | 91c30771b63ae3498dbcd880930e6faa975c5928 (patch) | |
tree | 670d78041aaf8c4c492cfffeeaeb87a7e4d8da88 /src/mesa/main/imports.h | |
parent | f236300e3a79be14da7f417956227bbe8a680e87 (diff) |
Add the ability to define NO_LIBCWRAPPER to avoid libcwrapper brain damage.
If it's true that libcwrapper usage isn't necessary ever in the DllLoader world,
then this code should probbaly all go away.
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r-- | src/mesa/main/imports.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 7ee127400af..f8c0d7cd633 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -161,7 +161,7 @@ typedef union { GLfloat f; GLint i; } fi_type; ***/ #if 0 /* _mesa_sqrtf() not accurate enough - temporarily disabled */ # define SQRTF(X) _mesa_sqrtf(X) -#elif defined(XFree86LOADER) && defined(IN_MODULE) +#elif defined(XFree86LOADER) && defined(IN_MODULE) && !defined(NO_LIBCWRAPPER) # define SQRTF(X) (float) xf86sqrt((float) (X)) #else # define SQRTF(X) (float) sqrt((float) (X)) @@ -209,7 +209,7 @@ static INLINE GLfloat LOG2(GLfloat val) num.f = ((-1.0f/3) * num.f + 2) * num.f - 2.0f/3; return num.f + log_2; } -#elif defined(XFree86LOADER) && defined(IN_MODULE) +#elif defined(XFree86LOADER) && defined(IN_MODULE) && !defined(NO_LIBCWRAPPER) #define LOG2(x) ((GLfloat) (xf86log(x) * 1.442695)) #else /* @@ -281,7 +281,7 @@ static INLINE int GET_FLOAT_BITS( float x ) *** LDEXPF: multiply value by an integral power of two *** FREXPF: extract mantissa and exponent from value ***/ -#if defined(XFree86LOADER) && defined(IN_MODULE) +#if defined(XFree86LOADER) && defined(IN_MODULE) && !defined(NO_LIBCWRAPPER) #define CEILF(x) ((GLfloat) xf86ceil(x)) #define FLOORF(x) ((GLfloat) xf86floor(x)) #define FABSF(x) ((GLfloat) xf86fabs(x)) |