From eeb9393578c4a2f2e388b18d9796cb9611f850dd Mon Sep 17 00:00:00 2001 From: CaS Date: Fri, 21 Feb 2003 10:49:02 +0000 Subject: [PATCH] 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 --- init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.c b/init.c index c9df0e0..f3cc0e2 100644 --- a/init.c +++ b/init.c @@ -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