From 29745c0d13509352c8a32837079fa16c0fca1075 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 12 May 2008 13:32:08 -0500 Subject: #include a few more header files into auto-generated C code. --- Tools/CodeGen/Thorn.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Tools/CodeGen') 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", -- cgit v1.2.3