ref: 6e2b4fea1e5d6a18a15f8185d14cb615e173ab23
parent: 4506c187bc03cba118baf720a81494999e18f7a1
author: robs <robs>
date: Tue Sep 15 14:44:43 EDT 2009
make c++ compatible
--- a/src/sox.h
+++ b/src/sox.h
@@ -18,6 +18,10 @@
#include <stdlib.h>
#include "soxstdint.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* Avoid warnings about unused parameters. */
#ifdef __GNUC__
#define UNUSED __attribute__ ((unused))
@@ -595,4 +599,9 @@
char const * lsx_sigfigs3p(double percentage);
/* WARNING END */
+
+#if defined(__cplusplus)
+}
+#endif
+
#endif