]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/stream.h
lib: add extern "C" {} blocks to all libfrr headers
[mirror_frr.git] / lib / stream.h
index 20c5d3d77d930644f1014e1f742831c3fa710bd6..5341bfa40bde4468dfd8eee46f062123078d9562 100644 (file)
 #include "mpls.h"
 #include "prefix.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * A stream is an arbitrary buffer, whose contents generally are assumed to
  * be in network order.
@@ -404,4 +408,8 @@ static inline uint8_t *ptr_get_be32(uint8_t *ptr, uint32_t *out)
                        goto stream_failure;                                   \
        } while (0)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _ZEBRA_STREAM_H */