- Basic Mac support: Everything compiles but does not yet link.

SVN r1780 (trunk)
This commit is contained in:
Randy Heit 2009-09-01 02:08:53 +00:00
commit 33a397c04b
27 changed files with 216 additions and 72 deletions

View file

@ -511,7 +511,11 @@ bool I_WriteIniFailed ()
static const char *pattern;
#ifdef __APPLE__
static int matchfile (struct dirent *ent)
#else
static int matchfile (const struct dirent *ent)
#endif
{
return fnmatch (pattern, ent->d_name, FNM_NOESCAPE) == 0;
}
@ -643,3 +647,16 @@ unsigned int I_MakeRNGSeed()
return seed;
}
#if !defined(__amd64__) && !defined(__i386__)
extern "C" CPUInfo CPU;
void CheckCPUID(CPUInfo *cpu)
{
memset(cpu, 0, sizeof(*cpu));
cpu->DataL1LineSize = 32; // Assume a 32-byte cache line
}
void DumpCPUInfo(const CPUInfo *cpu)
{
}
#endif