* lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
+2012-10-08 Alexandre Duret-Lutz <adl@lrde.epita.fr> (tiny change)
+
+ gethrxtime: port to C++
+ * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
+
2012-10-04 Paul Eggert <eggert@cs.ucla.edu>
ptsname: fix macro-name typo
# 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
xtime_t gethrxtime (void);
# endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
# endif
# endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Return an extended time value that contains S seconds and NS
nanoseconds, without any overflow checking. */
static inline xtime_t
return ns;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif