aboutsummaryrefslogtreecommitdiff
path: root/src/common/testsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/testsupport.h')
-rw-r--r--src/common/testsupport.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/testsupport.h b/src/common/testsupport.h
new file mode 100644
index 000000000..621fd8c83
--- /dev/null
+++ b/src/common/testsupport.h
@@ -0,0 +1,14 @@
+/* Copyright (c) 2013, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef TOR_TESTSUPPORT_H
+#define TOR_TESTSUPPORT_H
+
+#ifdef TOR_UNIT_TESTS
+#define STATIC_UNLESS_TESTING
+#else
+#define STATIC_UNLESS_TESTING static
+#endif
+
+#endif
+