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
This commit is contained in:
Axel Dörfler 2006-10-06 12:19:20 +00:00
parent e979f4bac7
commit 3cf73255de
1 changed files with 2 additions and 0 deletions

View File

@ -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)