diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2018-12-12 14:08:15 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2018-12-12 14:08:15 -0500 |
commit | d5d60a503f6de8866be843b40fe6de7c20a0f3a0 (patch) | |
tree | 90a217238b5b5c08536829c177ccaf339b1a13c3 /protos.h | |
parent | c856f5c96f88cc8a5aacf6ee90e92ed80bd8c3ba (diff) | |
download | egawk-d5d60a503f6de8866be843b40fe6de7c20a0f3a0.tar.gz egawk-d5d60a503f6de8866be843b40fe6de7c20a0f3a0.tar.bz2 egawk-d5d60a503f6de8866be843b40fe6de7c20a0f3a0.zip |
Speed up UTC mktime by using library timegm if available instead of our slow implementation.
Diffstat (limited to 'protos.h')
-rw-r--r-- | protos.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -129,6 +129,10 @@ extern void tzset(); extern time_t mktime(struct tm *tp); #endif +#ifndef HAVE_TIMEGM +extern time_t timegm(struct tm *); +#endif + #ifndef HAVE_SNPRINTF extern int snprintf(char *restrict buf, size_t len, const char *restrict fmt, ...); #endif |