tests: Adapt utf8locale to musl
[libisds.git] / test / simline / system.h
blob221e45b59fa0989fac285aa3eb1ab55766b39399
1 #ifndef __ISDS_SYSTEM_H__
2 #define __ISDS_SYSTEM_H__
4 #include "http.h"
6 #ifdef _WIN32
7 #include "win32.h"
8 #else
9 #include "unix.h"
10 #endif
12 #include <time.h> /* for struvt tm */
13 #include <sys/time.h> /* for time_t */
15 http_error _server_datestring2tm(const char *string, struct tm *time);
17 /* Convert UTC broken time to time_t.
18 * @broken_utc it time in UTC in broken format. Despite its content is not
19 * touched, it'sw not-const because underlying POSIX function has non-const
20 * signature.
21 * @return (time_t) -1 in case of error */
22 time_t _isds_timegm(struct tm *broken_utc);
24 #endif