Only include ppc_intrinsics.h when required

This commit is contained in:
dhewg 2011-12-11 20:40:28 +01:00
parent c15e761bae
commit 798de99dfb
2 changed files with 5 additions and 6 deletions

View file

@ -30,8 +30,6 @@ If you have questions concerning this license or the applicable additional terms
#define __MATH_MATH_H__ #define __MATH_MATH_H__
#ifdef MACOS_X #ifdef MACOS_X
// for square root estimate instruction
#include <ppc_intrinsics.h>
// for FLT_MIN // for FLT_MIN
#include <float.h> #include <float.h>
#endif #endif

View file

@ -35,10 +35,6 @@ If you have questions concerning this license or the applicable additional terms
#include <math.h> #include <math.h>
#include <float.h> #include <float.h>
#ifdef PPC_INTRINSICS
#include <ppc_intrinsics.h>
#endif
// Doom3 SIMD Library version 0.5 // Doom3 SIMD Library version 0.5
// Patrick Flanagan (pflanagan@apple.com) // Patrick Flanagan (pflanagan@apple.com)
// Sanjay Patel (spatel@apple.com) // Sanjay Patel (spatel@apple.com)
@ -53,6 +49,11 @@ If you have questions concerning this license or the applicable additional terms
#if defined(MACOS_X) && defined(__ppc__) #if defined(MACOS_X) && defined(__ppc__)
#ifdef PPC_INTRINSICS
// for square root estimate instruction
#include <ppc_intrinsics.h>
#endif
// Data struct sizes // Data struct sizes
#ifndef DRAWVERT_PADDED #ifndef DRAWVERT_PADDED