Only redefine main if we don't have __ELF__.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-08-16 16:11:01 +00:00
parent 46f4786519
commit 3deeef7f8a
3 changed files with 30 additions and 3 deletions

View file

@ -36,9 +36,18 @@
functions is implemented in NSProcessInfo.m
*/
#define main LibobjectsMain
/* Currently this only actually necessary if we don't have ELF.
If we have ELF, we can do something far cleaner.
See src/NSProcessInfo.m [__ELF__].
Hopefully, in the future, we'll do something cleaner
with non-ELF systems too.
-mccallum
*/
#ifndef __ELF__
#define main LibobjectsMain
extern int LibobjectsMain(int argc, char *argv[]);
#endif /* __ELF__ */
/*
NOTE! This is very dirty and dangerous trick. I spend several hours

View file

@ -36,9 +36,18 @@
functions is implemented in NSProcessInfo.m
*/
#define main LibobjectsMain
/* Currently this only actually necessary if we don't have ELF.
If we have ELF, we can do something far cleaner.
See src/NSProcessInfo.m [__ELF__].
Hopefully, in the future, we'll do something cleaner
with non-ELF systems too.
-mccallum
*/
#ifndef __ELF__
#define main LibobjectsMain
extern int LibobjectsMain(int argc, char *argv[]);
#endif /* __ELF__ */
/*
NOTE! This is very dirty and dangerous trick. I spend several hours

View file

@ -36,9 +36,18 @@
functions is implemented in NSProcessInfo.m
*/
#define main LibobjectsMain
/* Currently this only actually necessary if we don't have ELF.
If we have ELF, we can do something far cleaner.
See src/NSProcessInfo.m [__ELF__].
Hopefully, in the future, we'll do something cleaner
with non-ELF systems too.
-mccallum
*/
#ifndef __ELF__
#define main LibobjectsMain
extern int LibobjectsMain(int argc, char *argv[]);
#endif /* __ELF__ */
/*
NOTE! This is very dirty and dangerous trick. I spend several hours