[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add extern support for file-scope variables in testsupport.h



commit 4e4a760491ef162413240b0bb38732da801e818a
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
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.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits