diff --git a/.gitignore b/.gitignore index 567609b..0187b3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build/ +*~ diff --git a/fakegen.rb b/fakegen.rb index cadab4e..b030974 100644 --- a/fakegen.rb +++ b/fakegen.rb @@ -10,6 +10,8 @@ $MAX_CALL_HISTORY = 50 def include_dependencies putd "#include " + putd "#include /* For memset and memcpy */" + putd "" end def output_constants diff --git a/fff.h b/fff.h index 4377ab6..d807ab4 100644 --- a/fff.h +++ b/fff.h @@ -27,6 +27,8 @@ SOFTWARE. #define FAKE_FUNCTIONS #include +#include /* For memset and memcpy */ + #define FFF_MAX_ARGS (20u) #ifndef FFF_ARG_HISTORY_LEN #define FFF_ARG_HISTORY_LEN (50u)