Differentiate ppc and i386.
This commit is contained in:
@@ -133,6 +133,18 @@ ArchHooks_darwin::~ArchHooks_darwin()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RString ArchHooks_darwin::GetArchName() const
|
||||||
|
{
|
||||||
|
#if defined(__ppc__)
|
||||||
|
return "Mac OS X (ppc)";
|
||||||
|
#elif defined(__i386__)
|
||||||
|
return "Mac OS X (i386)";
|
||||||
|
#else
|
||||||
|
#error What arch?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RString ArchHooks_darwin::GetMachineId() const
|
RString ArchHooks_darwin::GetMachineId() const
|
||||||
{
|
{
|
||||||
RString ret;
|
RString ret;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class ArchHooks_darwin : public ArchHooks
|
|||||||
public:
|
public:
|
||||||
ArchHooks_darwin();
|
ArchHooks_darwin();
|
||||||
~ArchHooks_darwin();
|
~ArchHooks_darwin();
|
||||||
RString GetArchName() const { return "OS X"; }
|
RString GetArchName() const;
|
||||||
RString GetMachineId() const;
|
RString GetMachineId() const;
|
||||||
void DumpDebugInfo();
|
void DumpDebugInfo();
|
||||||
RString GetPreferredLanguage();
|
RString GetPreferredLanguage();
|
||||||
|
|||||||
Reference in New Issue
Block a user