Final fixes for DLLs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6848 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2000-06-30 22:42:48 +00:00
parent d26536528b
commit 656fde90c0
16 changed files with 309 additions and 149 deletions

View file

@ -84,11 +84,18 @@ Perhaps your program failed to #include <Foundation/NSObject.h> or\n\
<Foundation/Foundation.h>?\n\
If that is not the problem, Please report the error to bug-gnustep@gnu.org.\n\n"
#else
#ifdef GS_PASS_ARGUMENTS
#define _GNU_MISSING_MAIN_FUNCTION_CALL @"\nGNUSTEP Error:\n\
A call to NSProcessInfo +initializeWithArguments:... must be made\n\
as the first ObjC statment in main. This function is used to \n\
establish the argv and environment variables.\n"
#else
#define _GNU_MISSING_MAIN_FUNCTION_CALL @"\nGNUSTEP Internal Error:\n\
The private GNUstep function to establish the argv and environment\n\
variables was not called.\n\
Please report the error to bug-gnustep@gnu.org.\n\n"
#endif
#endif
/*************************************************************************
*** _NSConcreteProcessInfo
@ -483,6 +490,7 @@ extern char** _environ;
}
#else
#ifndef GS_PASS_ARGUMENTS
#undef main
int main(int argc, char *argv[], char *env[])
{
@ -506,6 +514,7 @@ int main(int argc, char *argv[], char *env[])
/* Call the user defined main function */
return gnustep_base_user_main(argc, argv, env);
}
#endif /* !GS_PASS_ARGUMENTS */
#endif /* __MINGW32__ */
#endif /* HAS_LOAD_METHOD && HAS_PROC_FS */