Skip to content

Commit

Permalink
spaghetti
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Nov 21, 2024
1 parent e978e29 commit 64253ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/aws/crt/Exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
# else
# define AWS_CRT_CPP_API
# endif // AWS_CRT_CPP_USE_IMPORT_EXPORT
# define AWS_CRT_CPP_TEMPLATE_DECLARATION extern template class
# define AWS_CRT_CPP_TEMPLATE_DEFINITION template class AWS_CRT_CPP_API

#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
# if ((__GNUC__ >= 4) || defined(__clang__)) && defined(AWS_CRT_CPP_USE_IMPORT_EXPORT) && \
Expand All @@ -36,4 +38,6 @@
# else
# define AWS_CRT_CPP_API
# endif // __GNUC__ >= 4 || defined(__clang__)
# define AWS_CRT_CPP_TEMPLATE_DECLARATION extern template class AWS_CRT_CPP_API
# define AWS_CRT_CPP_TEMPLATE_DEFINITION template class AWS_CRT_CPP_API
#endif
2 changes: 1 addition & 1 deletion include/aws/crt/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct aws_byte_buf;
struct aws_byte_cursor;
struct aws_socket_options;

extern template class std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;
AWS_CRT_CPP_TEMPLATE_DECLARATION std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;

namespace Aws
{
Expand Down
2 changes: 1 addition & 1 deletion source/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <aws/common/encoding.h>

template class AWS_CRT_CPP_API std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;
AWS_CRT_CPP_TEMPLATE_DEFINITION std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;

namespace Aws
{
Expand Down

0 comments on commit 64253ff

Please sign in to comment.