diff --git a/fakegen.rb b/fakegen.rb index 075c8f7..f8eb499 100644 --- a/fakegen.rb +++ b/fakegen.rb @@ -8,6 +8,11 @@ $DEFAULT_ARG_HISTORY = 50 $MAX_CALL_HISTORY = 50 +def output_pragmas + putd "#pragma GCC system_header" + puts +end + def include_dependencies putd "#include " putd "#include /* For memset and memcpy */" @@ -637,6 +642,7 @@ def output_macro_counting_shortcuts(has_calling_conventions) def output_c_and_cpp(has_calling_conventions) include_guard { + output_pragmas include_dependencies output_constants output_internal_helper_macros diff --git a/fff.h b/fff.h index aa38912..a5ea2f9 100644 --- a/fff.h +++ b/fff.h @@ -26,6 +26,8 @@ SOFTWARE. #ifndef FAKE_FUNCTIONS #define FAKE_FUNCTIONS +#pragma GCC system_header + #include #include /* For memset and memcpy */