Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / udpfromto.h
index 1c37048..525df38 100644 (file)
@@ -11,6 +11,10 @@ RCSIDH(udpfromtoh, "$Id$")
 #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,
@@ -21,4 +25,8 @@ int sendfromto(int s, void *buf, size_t len, int flags,
               struct sockaddr *to, socklen_t tolen);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif