Skip to content

Commit 27ffb6b

Browse files
make exports consistent (#388)
1 parent fb651a4 commit 27ffb6b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/aws/mqtt/exports.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55
* SPDX-License-Identifier: Apache-2.0.
66
*/
7-
#if defined(USE_WINDOWS_DLL_SEMANTICS) || defined(WIN32)
7+
#if defined(AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined(_WIN32)
88
# ifdef AWS_MQTT_USE_IMPORT_EXPORT
99
# ifdef AWS_MQTT_EXPORTS
1010
# define AWS_MQTT_API __declspec(dllexport)
@@ -15,13 +15,13 @@
1515
# define AWS_MQTT_API
1616
# endif /* USE_IMPORT_EXPORT */
1717

18-
#else /* defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) */
19-
# if ((__GNUC__ >= 4) || defined(__clang__)) && defined(AWS_MQTT_USE_IMPORT_EXPORT) && defined(AWS_MQTT_EXPORTS)
18+
#else /* defined (AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) */
19+
# if defined(AWS_MQTT_USE_IMPORT_EXPORT) && defined(AWS_MQTT_EXPORTS)
2020
# define AWS_MQTT_API __attribute__((visibility("default")))
2121
# else
2222
# define AWS_MQTT_API
23-
# endif /* __GNUC__ >= 4 || defined(__clang__) */
23+
# endif
2424

25-
#endif /* defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) */
25+
#endif /* defined (AWS_CRT_USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) */
2626

2727
#endif /* AWS_MQTT_EXPORTS_H */

0 commit comments

Comments
 (0)