Skip to content

Commit

Permalink
Add missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Feb 11, 2016
1 parent 56e3dff commit d422fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Util/System.mo
Expand Up @@ -1036,7 +1036,7 @@ protected function intRandom0
"Returns a value in the intervals [0,RAND_MAX) using the C method rand()."
output Integer ret;

external "C" ret = rand();
external "C" ret = rand() annotation(Include = "#include <stdlib.h>");
end intRandom0;

public function gettextInit
Expand Down Expand Up @@ -1125,7 +1125,7 @@ end launchParallelTasks;

public function exit "Exits the compiler at this point with the given exit status."
input Integer status;
external "C" exit(status);
external "C" exit(status) annotation(Include = "#include <stdlib.h>");
end exit;

public function threadWorkFailed "Exits the current thread with a failure."
Expand Down

0 comments on commit d422fe7

Please sign in to comment.