Fix for mingw32 use and sending of +load method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@16026 72102866-910b-0410-8b05-ffd578937521
main
CaS 23 years ago
parent d42e6d908e
commit eeb9393578

@ -681,6 +681,16 @@ static void objc_send_load (void)
if (!objc_lookup_class ("NXConstantString") ||
!objc_lookup_class ("Object"))
return;
#else
/*
* The above check prevents +load being called at all if NXConstantString
* is never created (common on modern systems). However, completely
* removing it causes the runtime test in the GNUstep base library
* configure to fail (for some unknown reason), so we retain the check for
* the existence of the Object class.
*/
if (!objc_lookup_class ("Object"))
return;
#endif
/* Iterate over all modules in the __objc_module_list and call on them the

Loading…
Cancel
Save