[PATCH] D42099: [libclang] Add missing CINDEX_LINKAGE

Nikolai Kosjar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 04:10:09 PST 2018


nik created this revision.
Herald added a subscriber: cfe-commits.
nik added reviewers: yvvan, jbcoe.

...otherwise the build fails on Windows.


Repository:
  rC Clang

https://reviews.llvm.org/D42099

Files:
  include/clang-c/Index.h


Index: include/clang-c/Index.h
===================================================================
--- include/clang-c/Index.h
+++ include/clang-c/Index.h
@@ -4136,16 +4136,17 @@
 /**
  * \brief Get a property value for the given printing policy.
  */
-unsigned
+CINDEX_LINKAGE unsigned
 clang_PrintingPolicy_getProperty(CXPrintingPolicy Policy,
                                  enum CXPrintingPolicyProperty Property);
 
 /**
  * \brief Set a property value for the given printing policy.
  */
-void clang_PrintingPolicy_setProperty(CXPrintingPolicy Policy,
-                                      enum CXPrintingPolicyProperty Property,
-                                      unsigned Value);
+CINDEX_LINKAGE void
+clang_PrintingPolicy_setProperty(CXPrintingPolicy Policy,
+                                 enum CXPrintingPolicyProperty Property,
+                                 unsigned Value);
 
 /**
  * \brief Retrieve the default policy for the cursor.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42099.129934.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180116/64161301/attachment.bin>


More information about the cfe-commits mailing list