aboutsummaryrefslogtreecommitdiff
path: root/tests/stubs.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-18 10:06:59 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-18 10:06:59 -0800
commitc44386d110f5f335a34cc964768ab14d36b6dd36 (patch)
tree76e56433e337d70a1058d94db546586508bdc85b /tests/stubs.h
parent7e844cf618d67675928fb4c6fadc6cc16db19d19 (diff)
downloadnng-c44386d110f5f335a34cc964768ab14d36b6dd36.tar.gz
nng-c44386d110f5f335a34cc964768ab14d36b6dd36.tar.bz2
nng-c44386d110f5f335a34cc964768ab14d36b6dd36.zip
Windows compilation fixes.
Diffstat (limited to 'tests/stubs.h')
-rw-r--r--tests/stubs.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/stubs.h b/tests/stubs.h
index 967074c4..c77b8db6 100644
--- a/tests/stubs.h
+++ b/tests/stubs.h
@@ -7,13 +7,10 @@
// found online at https://opensource.org/licenses/MIT.
//
-#include "convey.h"
-#include "nng.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
+#ifndef STUBS_H
+#define STUBS_H
+#include <stdint.h>
#ifdef _WIN32
#include <windows.h>
#else
@@ -46,3 +43,5 @@ getms(void)
return (((uint64_t)(tv.tv_sec ) * 1000) + (tv.tv_usec / 1000));
#endif
}
+
+#endif // STUBS_H \ No newline at end of file