Skip to content

Commit

Permalink
config.hh: Don't use c++11 attributes in explicit template instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 5, 2024
1 parent ab9290e commit cade647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.hh.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
# define @LIBRARY_NAME@_DLLIMPORT [[gnu::visibility("default")]]
# define @LIBRARY_NAME@_DLLEXPORT [[gnu::visibility("default")]]
# define @LIBRARY_NAME@_DLLLOCAL [[gnu::visibility("hidden")]]
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DECLARATION_DLLIMPORT [[gnu::visibility("default")]]
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DECLARATION_DLLEXPORT [[gnu::visibility("default")]]
// gnu::visibility is not working with clang and explicit template instantiation
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DECLARATION_DLLIMPORT __attribute__ ((visibility("default")))
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DECLARATION_DLLEXPORT __attribute__ ((visibility("default")))
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DEFINITION_DLLIMPORT
# define @LIBRARY_NAME@_EXPLICIT_INSTANTIATION_DEFINITION_DLLEXPORT
# else
Expand Down

0 comments on commit cade647

Please sign in to comment.