Skip to content

Commit c997d8f

Browse files
make exports more consistent (#511)
1 parent ef78cb8 commit c997d8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/aws/http/exports.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0.
77
*/
88

9-
#if defined(USE_WINDOWS_DLL_SEMANTICS) || defined(WIN32)
9+
#if defined(AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined(_WIN32)
1010
# ifdef AWS_HTTP_USE_IMPORT_EXPORT
1111
# ifdef AWS_HTTP_EXPORTS
1212
# define AWS_HTTP_API __declspec(dllexport)
@@ -18,12 +18,12 @@
1818
# endif /* USE_IMPORT_EXPORT */
1919

2020
#else
21-
# if ((__GNUC__ >= 4) || defined(__clang__)) && defined(AWS_HTTP_USE_IMPORT_EXPORT) && defined(AWS_HTTP_EXPORTS)
21+
# if defined(AWS_HTTP_USE_IMPORT_EXPORT) && defined(AWS_HTTP_EXPORTS)
2222
# define AWS_HTTP_API __attribute__((visibility("default")))
2323
# else
2424
# define AWS_HTTP_API
25-
# endif /* __GNUC__ >= 4 || defined(__clang__) */
25+
# endif
2626

27-
#endif /* defined(USE_WINDOWS_DLL_SEMANTICS) || defined(WIN32) */
27+
#endif /* defined(AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined(_WIN32) */
2828

2929
#endif /* AWS_HTTP_EXPORTS_H */

0 commit comments

Comments
 (0)