summaryrefslogtreecommitdiff
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-29 09:45:34 -0400
committerKen Martin <ken.martin@kitware.com>2002-08-29 09:45:34 -0400
commitb64c6bba1120535af111ababee66e6965add096c (patch)
treef0a9506cb129ca19bc5800e0526826cdddc7dad7 /Source/cmCPluginAPI.cxx
parente8d0e8088f7caff5a26ae266f61dd9669ad3c638 (diff)
downloadcmake-b64c6bba1120535af111ababee66e6965add096c.tar.gz
extern C fixes
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 6833935051..b141160377 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/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,