mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
46f4786519
commit
3deeef7f8a
3 changed files with 30 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue