aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/Thorn.m
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/CodeGen/Thorn.m')
-rw-r--r--Tools/CodeGen/Thorn.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m
index ca43637..de153ec 100644
--- a/Tools/CodeGen/Thorn.m
+++ b/Tools/CodeGen/Thorn.m
@@ -473,8 +473,11 @@ CreateSetterSource[calcs_, debug_, useLoopControl_, opts___] :=
"#define KRANC_" <> ToUpperCase[CodeGen`SOURCELANGUAGE] <> "\n\n",
If[CodeGen`SOURCELANGUAGE == "C",
- IncludeSystemFile["math.h"],
- "\n"
+ {IncludeSystemFile["assert.h"],
+ IncludeSystemFile["math.h"],
+ IncludeSystemFile["stdio.h"],
+ IncludeSystemFile["stdlib.h"]},
+ {"\n"}
],
Map[IncludeFile, Join[{"cctk.h", "cctk_Arguments.h", "cctk_Parameters.h",