summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-01-21 21:29:02 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-01-21 21:29:02 +0000
commit170b1962e3648be5d4b991579d61efbc60a24fd2 (patch)
treece464055efb2e9638bdb2fd0ce2c5099f8170722
parent82b15a9007b5fcf14713055793dbfbe4084e0f9d (diff)
make declarations "C" to allow c++ code to compile
discussed with espie@, ok jakemsr@ and millert@
-rw-r--r--lib/libsndio/sndio.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libsndio/sndio.h b/lib/libsndio/sndio.h
index c2902af775e..1e2059d13e8 100644
--- a/lib/libsndio/sndio.h
+++ b/lib/libsndio/sndio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndio.h,v 1.5 2009/01/17 10:39:53 ratchov Exp $ */
+/* $OpenBSD: sndio.h,v 1.6 2009/01/21 21:29:01 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -118,6 +118,10 @@ struct sio_cap {
*/
#define SIO_MAXVOL 127
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int sio_strtoenc(struct sio_par *, char *);
int sio_enctostr(struct sio_par *, char *);
void sio_initpar(struct sio_par *);
@@ -139,4 +143,8 @@ int sio_eof(struct sio_hdl *);
int sio_setvol(struct sio_hdl *, unsigned);
void sio_onvol(struct sio_hdl *, void (*)(void *, unsigned), void *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* !defined(SNDIO_H) */