gethrxtime: port to C++
[gnulib.git] / lib / gethrxtime.h
index f09ef39..9453d60 100644 (file)
 
 # include "xtime.h"
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /* Get the current time, as a count of the number of nanoseconds since
    an arbitrary epoch (e.g., the system boot time).  Prefer a
    high-resolution clock that is not subject to resetting or
@@ -34,4 +38,8 @@ static inline xtime_t gethrxtime (void) { return gethrtime (); }
 xtime_t gethrxtime (void);
 # endif
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif