@@ -59,11 +59,11 @@ .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free, .vfprintf = vfprintf, - .fputs = fputs, + .fflush = fflush, .exit = exit, .abort = abort, ._Unwind_RaiseException = _Unwind_RaiseException, ._Unwind_DeleteException = _Unwind_DeleteException, ._Unwind_GetLanguageSpecificData = @@ -77,11 +77,15 @@ ._Unwind_SetGR = _Unwind_SetGR, ._Unwind_Resume = _Unwind_Resume, .__register_frame_info = __register_frame_info, .__deregister_frame_info = __deregister_frame_info, }; - objc_init(&libc, stdout, stderr); + + if (!objc_init(1, &libc, stdout, stderr)) { + fputs("Failed to initialize objfw_rt.library!\n", stderr); + abort(); + } initialized = true; } OF_DESTRUCTOR()