summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index bea1f49a82..9e2c05ceae 100644
--- a/main.c
+++ b/main.c
@@ -28,6 +28,11 @@ int _CRT_glob = 0;
#include <console.h>
#endif
+/* to link startup code with ObjC support */
+#if defined(__APPLE__) && defined(__MACH__)
+static void objcdummyfunction( void ) { objc_msgSend(); }
+#endif
+
int
main(argc, argv, envp)
int argc;