Index: webrtc/base/opensslidentity.cc |
diff --git a/webrtc/base/opensslidentity.cc b/webrtc/base/opensslidentity.cc |
index feda6744f07df80e3a09a6bf9a37a24cd2c1c98a..7894b4887cd1e58d52ac0ea7e6324122358f4b56 100644 |
--- a/webrtc/base/opensslidentity.cc |
+++ b/webrtc/base/opensslidentity.cc |
@@ -186,7 +186,7 @@ void OpenSSLKeyPair::AddReference() { |
#endif |
} |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
// Print a certificate to the log, for debugging. |
static void PrintCert(X509* x509) { |
BIO* temp_memory_bio = BIO_new(BIO_s_mem()); |
@@ -215,7 +215,7 @@ OpenSSLCertificate* OpenSSLCertificate::Generate( |
LogSSLErrors("Generating certificate"); |
return NULL; |
} |
-#ifdef _DEBUG |
+#if !defined(NDEBUG) |
PrintCert(x509); |
#endif |
OpenSSLCertificate* ret = new OpenSSLCertificate(x509); |