Browse Source

Add extern support for file-scope variables in testsupport.h

Andrea Shepard 8 years ago
parent
commit
4e4a760491
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/testsupport.h

+ 2 - 0
src/common/testsupport.h

@@ -6,8 +6,10 @@
 
 #ifdef TOR_UNIT_TESTS
 #define STATIC
+#define EXTERN(type, name) extern type name;
 #else
 #define STATIC static
+#define EXTERN(type, name)
 #endif
 
 /** Quick and dirty macros to implement test mocking.