]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/queue.h
lib: STAILQ_FOREACH_SAFE never gives a null elem
[mirror_frr.git] / lib / queue.h
index 11e28b4c912554caf2c9cae8adebb407a46ce0fb..dab43e3c54ff6cc4d6a9551446caeb093f539014 100644 (file)
 #ifndef _FRR_QUEUE_H
 #define _FRR_QUEUE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined(__OpenBSD__) && !defined(STAILQ_HEAD)
 #include "openbsd-queue.h"
 
@@ -85,4 +89,8 @@
        }; _elm; })
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _FRR_QUEUE_H */