소스 검색

extern C fixes

Ken Martin 23 년 전
부모
커밋
b64c6bba11
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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,