]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/network.h
lib: add extern "C" {} blocks to all libfrr headers
[mirror_frr.git] / lib / network.h
index 4703dc9b6364635494d8aa9f7a07d20348a67147..a00c5a0a6574ce6122c868c6ba2a773ea1037c6e 100644 (file)
 #ifndef _ZEBRA_NETWORK_H
 #define _ZEBRA_NETWORK_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Both readn and writen are deprecated and will be removed.  They are not
    suitable for use with non-blocking file descriptors.
  */
@@ -41,4 +45,8 @@ extern int set_cloexec(int fd);
 extern float htonf(float);
 extern float ntohf(float);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _ZEBRA_NETWORK_H */