diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 17:57:28 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 17:57:56 +0100 |
commit | 8794c46a0094eea70cc2122ffeebf00e8ed926f4 (patch) | |
tree | a812d147fb99b72476f437dd8149c425dc53f2c0 /tests | |
parent | 237819afda29accc5e1e98ba3fbed6fee29d5ca9 (diff) | |
download | cmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.tar.gz cmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.tar.bz2 cmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.zip |
tests: Fix building the tests with Visual Studio.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_alloc.c | 3 | ||||
-rw-r--r-- | tests/test_assert_macros.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_alloc.c b/tests/test_alloc.c index 6008499..e1642af 100644 --- a/tests/test_alloc.c +++ b/tests/test_alloc.c @@ -1,6 +1,9 @@ +#include "config.h" + #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <cmocka_private.h> #include <cmocka.h> #include <stdlib.h> diff --git a/tests/test_assert_macros.c b/tests/test_assert_macros.c index 2906517..8e0ebb1 100644 --- a/tests/test_assert_macros.c +++ b/tests/test_assert_macros.c @@ -1,12 +1,17 @@ +#include "config.h" + #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <cmocka_private.h> #include <cmocka.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <fcntl.h> /************************************** |