Commit 970bc7de authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Shielding with #ifdef __unix__ for include files that don't exist in deaf and...

Shielding with #ifdef __unix__ for include files that don't exist in deaf and blind embedded systems
parent 5c188499
......@@ -41,7 +41,9 @@ void c_preamble(FV * fv)
fprintf(vm_if_h, "#ifndef VM_IF_%s\n", fv->name);
fprintf(vm_if_h, "#define VM_IF_%s\n\n", fv->name);
fprintf(vm_if, "#include <stdlib.h>\n" "#include <stdio.h>\n\n");
Please register or sign in to reply
fprintf(vm_if_h, "#ifdef __unix__\n");
fprintf(vm_if, "#include <stdlib.h>\n" "#include <stdio.h>\n");
fprintf(vm_if_h, "#endif\n\n");
fprintf(vm_if_h, "#ifdef __cplusplus\n"
"extern \"C\" {\n" "#endif\n\n");
......
......@@ -291,8 +291,9 @@ void gui_preamble(FV * fv)
"/* This file was generated automatically: DO NOT MODIFY IT ! */\n\n");
fprintf(header_id, "#ifndef _%s_GUI_HEADER_H\n", fv->name);
fprintf(header_id, "#define _%s_GUI_HEADER_H\n\n\n", fv->name);
fprintf(header_id, "#ifdef __unix__\n");
fprintf(header_id,
"#include <stdlib.h>\n#include <stdio.h>\n\n#include \"C_ASN1_Types.h\"\n\n");
"#include <stdlib.h>\n#include <stdio.h>\n#endif\n\n#include \"C_ASN1_Types.h\"\n\n");
fprintf(header_id, "#include \"%s_enums_def.h\"\n\n\n", fv->name);
//Create initialization function prototype
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment