diff --git a/Utilities/cmtar/compat/compat.h b/Utilities/cmtar/compat/compat.h index 471bcad10..2a3206fe1 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