summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.gyp6
-rw-r--r--crypto/crypto_api.h4
2 files changed, 2 insertions, 8 deletions
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index a6df806..f660e4cd 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -76,14 +76,8 @@
}],
[ 'component == "shared_library"', {
'defines': [
- 'CRYPTO_DLL',
'CRYPTO_IMPLEMENTATION',
],
- 'direct_dependent_settings': {
- 'defines': [
- 'CRYPTO_DLL',
- ],
- },
}],
[ 'use_openssl==1', {
# TODO(joth): Use a glob to match exclude patterns once the
diff --git a/crypto/crypto_api.h b/crypto/crypto_api.h
index b8af452..2787af8 100644
--- a/crypto/crypto_api.h
+++ b/crypto/crypto_api.h
@@ -6,7 +6,7 @@
#define CRYPTO_CRYPTO_API_H_
#pragma once
-#if defined(CRYPTO_DLL)
+#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(CRYPTO_IMPLEMENTATION)
@@ -19,7 +19,7 @@
#define CRYPTO_API __attribute__((visibility("default")))
#endif
-#else // defined(CRYPTO_DLL)
+#else // defined(COMPONENT_BUILD)
#define CRYPTO_API
#endif