From 4e4a760491ef162413240b0bb38732da801e818a Mon Sep 17 00:00:00 2001 From: Andrea Shepard Date: Sat, 25 Jun 2016 07:47:25 +0000 Subject: [PATCH] Add extern support for file-scope variables in testsupport.h --- src/common/testsupport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/testsupport.h b/src/common/testsupport.h index 3bb11a7e41..b98d7014c7 100644 --- a/src/common/testsupport.h +++ b/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.