* lib/stat-time.h: Add "C" linkage declaration.
* lib/timespec.h: Likewise.
+2017-03-17 Bruno Haible <bruno@clisp.org>
+
+ stat-time, timespec: Support use of the header files in C++ mode.
+ * lib/stat-time.h: Add "C" linkage declaration.
+ * lib/timespec.h: Likewise.
+
2017-03-17 Bruno Haible <bruno@clisp.org>
stdalign: Make it work with HP-UX cc.
# define _GL_STAT_TIME_INLINE _GL_INLINE
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* STAT_TIMESPEC (ST, ST_XTIM) is the ST_XTIM member for *ST of type
struct timespec, if available. If not, then STAT_TIMESPEC_NS (ST,
ST_XTIM) is the nanosecond component of the ST_XTIM member for *ST,
return t;
}
+#ifdef __cplusplus
+}
+#endif
+
_GL_INLINE_HEADER_END
#endif
# define _GL_TIMESPEC_INLINE _GL_INLINE
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Resolution of timespec timestamps (in units per second), and log
base 10 of the resolution. */
void gettime (struct timespec *);
int settime (struct timespec const *);
+#ifdef __cplusplus
+}
+#endif
+
_GL_INLINE_HEADER_END
#endif