mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
17 lines
528 B
C
17 lines
528 B
C
#ifndef COSMOPOLITAN_LIBC_X_XISO8601_H_
|
|
#define COSMOPOLITAN_LIBC_X_XISO8601_H_
|
|
#include "libc/calls/struct/timespec.h"
|
|
#include "libc/calls/struct/timeval.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
char *xiso8601i(int) mallocesque;
|
|
char *xiso8601tv(struct timeval *) mallocesque;
|
|
char *xiso8601ts(struct timespec *) mallocesque;
|
|
|
|
#if __STDC_VERSION__ + 0 >= 201112
|
|
#define xiso8601(TS) \
|
|
_Generic(*(TS), struct timeval : xiso8601tv, default : xiso8601ts)(TS)
|
|
#endif /* C11 */
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_X_XISO8601_H_ */
|