[tor-commits] [tor/master] Move stdbool include to torint.h

nickm at torproject.org nickm at torproject.org
Fri Apr 27 19:10:29 UTC 2018


commit cb0af6157c0acbd0a30c20f8f0a3b9d4d1f402ad
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Apr 27 15:08:27 2018 -0400

    Move stdbool include to torint.h
    
    It's friday, and this seems like a good idea, and they're egging me
    on in IRC.
---
 src/common/torint.h | 2 ++
 src/or/or.h         | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/torint.h b/src/common/torint.h
index 0b8061d24..fc7818fe2 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -40,6 +40,8 @@
 #include <inttypes.h>
 #endif
 
+#include <stdbool.h>
+
 #if (SIZEOF_INT8_T != 0)
 #define HAVE_INT8_T
 #endif
diff --git a/src/or/or.h b/src/or/or.h
index 3498e6657..475274340 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -57,7 +57,6 @@
 #ifdef HAVE_TIME_H
 #include <time.h>
 #endif
-#include <stdbool.h>
 
 #ifdef _WIN32
 #include <winsock2.h>



More information about the tor-commits mailing list