Browse Source

extern C fixes

Ken Martin 23 năm trước cách đây
mục cha
commit
b64c6bba11
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Source/cmCPluginAPI.cxx

+ 5 - 0
Source/cmCPluginAPI.cxx

@@ -22,6 +22,9 @@
 #include "cmMakefile.h"
 #include "cmCPluginAPI.h"
 
+extern "C" 
+{
+  
 void *cmGetClientData(void *info)
 {
   return ((cmLoadedCommandInfo *)info)->ClientData;
@@ -453,6 +456,8 @@ void cmRemoveFile(const char *name)
   cmSystemTools::RemoveFile(name);
 }
 
+} // close the extern "C" scope
+
 cmCAPI cmStaticCAPI =
 {
   cmGetClientData,