Apple constant string updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13097 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-03-12 15:25:37 +00:00
parent 2f4791fdaf
commit 1199f0d2c1
5 changed files with 32 additions and 16 deletions

View file

@ -500,6 +500,14 @@ _gnu_noobjc_free_vars(void)
#undef main
int main(int argc, char *argv[], char *env[])
{
#ifdef NeXT_RUNTIME
/* This memcpy has to be done before the first message is sent to any
constant string object. See Apple Radar 2870817 */
memcpy(&_NSConstantStringClassReference,
objc_getClass("NSConstantString"),
sizeof(_NSConstantStringClassReference));
#endif
#if defined(__MINGW__)
WSADATA lpWSAData;