Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions fakegen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdarg.h>"
putd "#include <string.h> /* For memset and memcpy */"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions fff.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ SOFTWARE.
#ifndef FAKE_FUNCTIONS
#define FAKE_FUNCTIONS

#pragma GCC system_header

#include <stdarg.h>
#include <string.h> /* For memset and memcpy */

Expand Down