]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/monotime.h
lib: add extern "C" {} blocks to all libfrr headers
[mirror_frr.git] / lib / monotime.h
index 00b9400462e2f6c8b6e49c29ae6e1099fd80854c..6aac966ea14a2aee8e6872ca68893a58f953f620 100644 (file)
 #include <time.h>
 #include <sys/time.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef TIMESPEC_TO_TIMEVAL
 /* should be in sys/time.h on BSD & Linux libcs */
 #define TIMESPEC_TO_TIMEVAL(tv, ts)                                            \
@@ -91,4 +95,8 @@ static inline char *time_to_string(time_t ts)
        return ctime(&tbuf);
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _FRR_MONOTIME_H */