summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar
diff options
context:
space:
mode:
authorYogi Girdhar <yogi.girdhar@kitware.com>2006-01-16 17:54:30 (GMT)
committerYogi Girdhar <yogi.girdhar@kitware.com>2006-01-16 17:54:30 (GMT)
commitdbff065bab91411cfda4cd40df1cc653128227b2 (patch)
tree865b2ee37ca195cae96e163add9e37031a06438d /Utilities/cmtar
parentc59c3d37a8b102a6e8749223c3b30ee64f5c93ef (diff)
downloadCMake-dbff065bab91411cfda4cd40df1cc653128227b2.zip
CMake-dbff065bab91411cfda4cd40df1cc653128227b2.tar.gz
CMake-dbff065bab91411cfda4cd40df1cc653128227b2.tar.bz2
COMP: wrapped compat.h inside a extern C block so that we can use it in C++ code
Diffstat (limited to 'Utilities/cmtar')
-rw-r--r--Utilities/cmtar/compat/compat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Utilities/cmtar/compat/compat.h b/Utilities/cmtar/compat/compat.h
index 471bcad..2a3206f 100644
--- a/Utilities/cmtar/compat/compat.h
+++ b/Utilities/cmtar/compat/compat.h
@@ -16,7 +16,10 @@
# include <libgen.h>
#endif
-
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(NEED_BASENAME) && !defined(HAVE_BASENAME)
# ifdef basename
@@ -324,3 +327,6 @@ char *strsep(register char **, register const char *);
# endif
#endif
+#ifdef __cplusplus
+}
+#endif