From dbff065bab91411cfda4cd40df1cc653128227b2 Mon Sep 17 00:00:00 2001 From: Yogi Girdhar Date: Mon, 16 Jan 2006 12:54:30 -0500 Subject: [PATCH] COMP: wrapped compat.h inside a extern C block so that we can use it in C++ code --- Utilities/cmtar/compat/compat.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Utilities/cmtar/compat/compat.h b/Utilities/cmtar/compat/compat.h index 471bcad10d..2a3206fe17 100644 --- a/Utilities/cmtar/compat/compat.h +++ b/Utilities/cmtar/compat/compat.h @@ -16,7 +16,10 @@ # include #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