Skip to content

Commit d24d3c9

Browse files
author
Alexander Batashev
committed
Fix some errors
Signed-off-by: Alexander Batashev <[email protected]>
1 parent f7a75ea commit d24d3c9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

sycl/include/CL/sycl/detail/export.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@
2525
#else
2626
#define __SYCL_EXPORT __declspec(dllimport)
2727
#define __SYCL_EXPORT_DEPRECATED(x) __declspec(dllimport, deprecated(x))
28-
#endif
29-
#else
28+
#endif //__SYCL_BUILD_SYCL_DLL
29+
#else // _WIN32
3030

3131
#define DLL_LOCAL __attribute__((visibility("hidden")))
3232

3333
#define __SYCL_EXPORT __attribute__((visibility("default")))
3434
#define __SYCL_EXPORT_DEPRECATED(x) \
3535
__attribute__((visibility("default"), deprecated(x)))
36+
#endif // _WIN32
37+
#endif // __SYCL_EXPORT
38+
#else
39+
#ifndef __SYCL_EXPORT
40+
#define __SYCL_EXPORT
3641
#endif
37-
#endif
38-
#endif
42+
#endif // __SYCL_DEVICE_ONLY__

0 commit comments

Comments
 (0)