We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e2dcc0 + 1d2eb3b commit bfd0999Copy full SHA for bfd0999
tools/SourceKit/tools/sourcekitd/bin/InProc/CodeCompletionSwiftInterop.h
@@ -43,12 +43,15 @@
43
#define SWIFTIDE_END_DECLS
44
#endif
45
46
-#ifndef SWIFTIDE_PUBLIC
47
-#if defined(_MSC_VER)
48
-#define SWIFTIDE_PUBLIC __declspec(dllimport)
+#if defined(_WIN32)
+// NOTE: static builds are currently unsupported.
+# if defined(sourcekitd_EXPORTS)
49
+# define SWIFTIDE_PUBLIC __declspec(dllexport)
50
+# else
51
+# define SWIFTIDE_PUBLIC __declspec(dllimport)
52
+# endif
53
#else
-#define SWIFTIDE_PUBLIC
-#endif
54
+# define SWIFTIDE_PUBLIC /**/
55
56
57
#ifndef __has_feature
0 commit comments