Fix build warning if _SCL_SECURE_NO_WARNINGS is defined globally

Thanks to for reporting the issue and providing
a patch.

Bug: 302
Change-Id: I1200a917ef4b791822712feafece19cb21988d55
Commit-Queue: David Benjamin <>
Commit-Queue: Adam Langley <>
Reviewed-by: Adam Langley <>
diff --git a/tool/ b/tool/
index d04cb7d..7c5e962 100644
--- a/tool/
+++ b/tool/
@@ -16,7 +16,9 @@
 // pointer, on grounds that MSVC cannot check them. Unfortunately, there is no
 // way to suppress the warning just on one line. The warning is flagged inside
 // the STL itself, so suppressing at the |std::copy| call does not work.
+#if !defined(_SCL_SECURE_NO_WARNINGS)
 #include <openssl/base.h>