diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-25 07:47:25 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-30 07:03:25 +0000 |
commit | 4e4a760491ef162413240b0bb38732da801e818a (patch) | |
tree | f70a0539b2ec0a35e1f1907ea4c9bda9e37dce5b /src | |
parent | cc6753939c0455ed5a00f66c066f23e799f44e1d (diff) | |
download | tor-4e4a760491ef162413240b0bb38732da801e818a.tar.gz tor-4e4a760491ef162413240b0bb38732da801e818a.zip |
Add extern support for file-scope variables in testsupport.h
Diffstat (limited to 'src')
-rw-r--r-- | src/common/testsupport.h | 2 |
1 files changed, 2 insertions, 0 deletions
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. |