From 3cf73255de3618360511c5c0816d90cef8c09a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 6 Oct 2006 12:19:20 +0000 Subject: [PATCH] The Haiku startup code now exports a symbol called __gHaikuStartupCode. This can be used to determine wether or not the executable was linked for/under Haiku or not (ie. BeOS). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19011 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/glue/start_dyn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/glue/start_dyn.c b/src/system/glue/start_dyn.c index f42d459a19..d0ca4dd828 100644 --- a/src/system/glue/start_dyn.c +++ b/src/system/glue/start_dyn.c @@ -24,6 +24,8 @@ extern char **argv_save; extern thread_id __main_thread_id; extern char **environ; +bool __gHaikuStartupCode = true; + int _start(int argc, char **argv, char **environment)