diff --git a/Headers/gnustep/base/fake-main.h b/Headers/gnustep/base/fake-main.h index be1c62f90..c8c19c332 100644 --- a/Headers/gnustep/base/fake-main.h +++ b/Headers/gnustep/base/fake-main.h @@ -44,7 +44,7 @@ -mccallum */ -#if (!defined(__ELF__) && !defined(SYS_AUTOLOAD)) || defined(__FreeBSD__) +#if (!defined(__ELF__) && !defined(SYS_AUTOLOAD)) || defined(__FreeBSD__) || defined(__PPC__) #ifndef __MINGW32__ #define main gnustep_base_user_main extern int gnustep_base_user_main (/* int argc, char *argv[] */); diff --git a/Source/NSProcessInfo.m b/Source/NSProcessInfo.m index a2ddedac8..fc6732876 100644 --- a/Source/NSProcessInfo.m +++ b/Source/NSProcessInfo.m @@ -196,7 +196,7 @@ _gnu_process_args(int argc, char *argv[], char *env[]) that it automatically gets called before main with the argument and environment pointers. FIXME: Would like to do something similar for other formats besides ELF. */ -#if ((defined(__ELF__) && !defined(__FreeBSD__)) || defined(SYS_AUTOLOAD)) +#if ((defined(__ELF__) && !defined(__FreeBSD__) && !defined(__PPC__)) || defined(SYS_AUTOLOAD)) #ifdef linux /* Under linux the functions in __libc_subinit are called before the