Skip to content

Commit

Permalink
KVIKIO_EXPORT: enable by defined(__clang__)
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Sep 25, 2024
1 parent ebc3706 commit c379d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/kvikio/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// `__attribute__((visibility("default")))`. If not, then if KvikIO is used in two
// different DSOs, the function will appear twice, and there will be two static objects.
// See <https://github.com/rapidsai/kvikio/issues/442>.
#if (defined(__GNUC__) && !defined(__MINGW32__) && !defined(__MINGW64__))
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__MINGW32__) && !defined(__MINGW64__)
#define KVIKIO_EXPORT __attribute__((visibility("default")))
#define KVIKIO_HIDDEN __attribute__((visibility("hidden")))
#else
Expand Down

0 comments on commit c379d5c

Please sign in to comment.