Skip to content

Commit

Permalink
Merge ac06c2b into 7e09f07
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiot committed Apr 14, 2021
2 parents 7e09f07 + ac06c2b commit fafa209
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit fafa209

Please sign in to comment.