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, 8 insertions, 2 deletions
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index f660e4cd..a6df806 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -76,8 +76,14 @@
}],
[ '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 2787af8..b8af452 100644
--- a/crypto/crypto_api.h
+++ b/crypto/crypto_api.h
@@ -6,7 +6,7 @@
#define CRYPTO_CRYPTO_API_H_
#pragma once
-#if defined(COMPONENT_BUILD)
+#if defined(CRYPTO_DLL)
#if defined(WIN32)
#if defined(CRYPTO_IMPLEMENTATION)
@@ -19,7 +19,7 @@
#define CRYPTO_API __attribute__((visibility("default")))
#endif
-#else // defined(COMPONENT_BUILD)
+#else // defined(CRYPTO_DLL)
#define CRYPTO_API
#endif