diff options
author | 2009-01-21 21:29:01 +0000 | |
---|---|---|
committer | 2009-01-21 21:29:01 +0000 | |
commit | b7f390d14bd1468a183e707d30cfdbf3e169d6ed (patch) | |
tree | 5f2d9060692482379084bbd784421b801c2fc095 | |
parent | Pass the new pointer to sysctl_clockrate(), so that trying to change the (diff) | |
download | wireguard-openbsd-b7f390d14bd1468a183e707d30cfdbf3e169d6ed.tar.xz wireguard-openbsd-b7f390d14bd1468a183e707d30cfdbf3e169d6ed.zip |
make declarations "C" to allow c++ code to compile
discussed with espie@, ok jakemsr@ and millert@
-rw-r--r-- | lib/libsndio/sndio.h | 10 |
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) */ |