diff options
author | Andrew Niefer | 2007-06-06 18:20:22 +0000 |
---|---|---|
committer | Andrew Niefer | 2007-06-06 18:20:22 +0000 |
commit | 5a94fbd375fcb85cfe5ed90965bcddf53e4a3d1a (patch) | |
tree | c483b34b5d297943e506d9856dd929629d369ce3 /bundles/org.eclipse.equinox.executable | |
parent | 2c8f5ce09276614b25f213e72cab44322e8bb354 (diff) | |
download | rt.equinox.framework-5a94fbd375fcb85cfe5ed90965bcddf53e4a3d1a.tar.gz rt.equinox.framework-5a94fbd375fcb85cfe5ed90965bcddf53e4a3d1a.tar.xz rt.equinox.framework-5a94fbd375fcb85cfe5ed90965bcddf53e4a3d1a.zip |
bug 190616
Diffstat (limited to 'bundles/org.eclipse.equinox.executable')
-rw-r--r-- | bundles/org.eclipse.equinox.executable/library/eclipseCommon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c index f4ddfb3a8..4499417aa 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c @@ -29,7 +29,18 @@ /* Global Variables */ _TCHAR* osArg = _T_ECLIPSE(DEFAULT_OS); +#ifdef MACOSX + /* on the mac we have a universal binary, decide ppc vs x86 based on endianness */ + #ifdef __BIG_ENDIAN__ + _TCHAR* osArchArg = _T_ECLIPSE("ppc"); + #elif __LITTLE_ENDIAN__ + _TCHAR* osArchArg = _T_ECLIPSE("x86"); + #else + _TCHAR* osArchArg = _T_ECLIPSE(DEFAULT_OS_ARCH); + #endif +#else _TCHAR* osArchArg = _T_ECLIPSE(DEFAULT_OS_ARCH); +#endif _TCHAR* wsArg = _T_ECLIPSE(DEFAULT_WS); /* the SWT supported GUI to be used */ /* Local Variables */ |