We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a75ea commit d24d3c9Copy full SHA for d24d3c9
sycl/include/CL/sycl/detail/export.hpp
@@ -25,14 +25,18 @@
25
#else
26
#define __SYCL_EXPORT __declspec(dllimport)
27
#define __SYCL_EXPORT_DEPRECATED(x) __declspec(dllimport, deprecated(x))
28
-#endif
29
-#else
+#endif //__SYCL_BUILD_SYCL_DLL
+#else // _WIN32
30
31
#define DLL_LOCAL __attribute__((visibility("hidden")))
32
33
#define __SYCL_EXPORT __attribute__((visibility("default")))
34
#define __SYCL_EXPORT_DEPRECATED(x) \
35
__attribute__((visibility("default"), deprecated(x)))
36
+#endif // _WIN32
37
+#endif // __SYCL_EXPORT
38
+#else
39
+#ifndef __SYCL_EXPORT
40
+#define __SYCL_EXPORT
41
#endif
42
+#endif // __SYCL_DEVICE_ONLY__
0 commit comments