Explorar el Código

COMP: wrapped compat.h inside a extern C block so that we can use it in C++ code

Yogi Girdhar hace 20 años
padre
commit
dbff065bab
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      Utilities/cmtar/compat/compat.h

+ 7 - 1
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