Fixes issues with MacOSX.

- Fixes compiler errors with mismatching types in DoomController.mm
- Adds PPC_INTRINSICS fix to Simd_Altivec.h
This commit is contained in:
dhewg 2012-06-28 14:08:39 +02:00
parent 112c00d409
commit f000947d4e
2 changed files with 5 additions and 3 deletions

View file

@ -95,7 +95,9 @@ If you have questions concerning this license or the applicable additional terms
// This turns on support for PPC intrinsics in the SIMD_AltiVec.cpp file. Right now it's only used for frsqrte. GCC
// supports these intrinsics but XLC does not.
#define PPC_INTRINSICS
#if defined(__GNUC__) && defined(__ALTIVEC__)
#define PPC_INTRINSICS
#endif
// This assumes that the idDrawVert array that is used in DeriveUnsmoothedTangents is aligned. If its not aligned,
// then we don't get any speedup

View file

@ -254,7 +254,7 @@ returns in megabytes
================
*/
int Sys_GetSystemRam( void ) {
long ramSize;
SInt32 ramSize;
if ( Gestalt( gestaltPhysicalRAMSize, &ramSize ) == noErr ) {
return ramSize / (1024*1024);
@ -265,7 +265,7 @@ int Sys_GetSystemRam( void ) {
bool OSX_GetCPUIdentification( int& cpuId, bool& oldArchitecture )
{
long cpu;
SInt32 cpu;
Gestalt(gestaltNativeCPUtype, &cpu);
cpuId = cpu;