diff --git a/GNUmakefile b/GNUmakefile index 9db86f6..541dcff 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -46,6 +46,7 @@ libobjcxx_LDFLAGS = -lstdc++ -lobjc ifneq ($(enable_legacy), no) libobjc_C_FILES += legacy_malloc.c +libobjc_CPPFLAGS += -DNO_LEGACY endif libobjc_HEADER_FILES_DIR = objc diff --git a/class_table.c b/class_table.c index 7952e26..7d00582 100644 --- a/class_table.c +++ b/class_table.c @@ -375,6 +375,7 @@ void objc_load_class(struct objc_class *class) fprintf(stderr, "Loading two versions of %s. The class that will be used is undefined\n", class->name); + return; } reload_class(class, existingClass); return;