projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "extern C {...} to header files for C++ builds.
[freeradius.git]
/
src
/
include
/
udpfromto.h
diff --git
a/src/include/udpfromto.h
b/src/include/udpfromto.h
index
1c37048
..
525df38
100644
(file)
--- a/
src/include/udpfromto.h
+++ b/
src/include/udpfromto.h
@@
-11,6
+11,10
@@
RCSIDH(udpfromtoh, "$Id$")
#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/libradius.h>
#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/libradius.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef WITH_UDPFROMTO
int udpfromto_init(int s);
int recvfromto(int s, void *buf, size_t len, int flags,
#ifdef WITH_UDPFROMTO
int udpfromto_init(int s);
int recvfromto(int s, void *buf, size_t len, int flags,
@@
-21,4
+25,8
@@
int sendfromto(int s, void *buf, size_t len, int flags,
struct sockaddr *to, socklen_t tolen);
#endif
struct sockaddr *to, socklen_t tolen);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif