Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2007-06-06 18:20:22 +0000
committerAndrew Niefer2007-06-06 18:20:22 +0000
commit5a94fbd375fcb85cfe5ed90965bcddf53e4a3d1a (patch)
treec483b34b5d297943e506d9856dd929629d369ce3 /bundles/org.eclipse.equinox.executable
parent2c8f5ce09276614b25f213e72cab44322e8bb354 (diff)
downloadrt.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.c11
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 */

Back to the top