commit 4e4a760491ef162413240b0bb38732da801e818a Author: Andrea Shepard andrea@torproject.org Date: Sat Jun 25 07:47:25 2016 +0000
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 3bb11a7..b98d701 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.