Some changes at util/time
This commit is contained in:
parent
41b7579f21
commit
6b9d205ef2
2 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,14 @@
|
|||
#ifndef IPFS_TIME_H
|
||||
#define IPFS_TIME_H
|
||||
#ifndef __USE_XOPEN
|
||||
#define __USE_XOPEN
|
||||
#endif // __USE_XOPEN
|
||||
|
||||
#ifndef __USE_ISOC11
|
||||
#define __USE_ISOC11
|
||||
#endif // __USE_ISOC11
|
||||
|
||||
#include <time.h>
|
||||
|
||||
int ipfs_util_time_parse_RFC3339 (struct timespec *ts, char *s);
|
||||
char *ipfs_util_time_format_RFC3339 (struct timespec *ts);
|
||||
|
|
10
util/time.c
10
util/time.c
|
@ -1,16 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef __USE_XOPEN
|
||||
#define __USE_XOPEN
|
||||
#endif // __USE_XOPEN
|
||||
|
||||
#ifndef __USE_ISOC11
|
||||
#define __USE_ISOC11
|
||||
#endif // __USE_ISOC11
|
||||
|
||||
#include <time.h>
|
||||
#include "ipfs/util/time.h"
|
||||
|
||||
int ipfs_util_time_parse_RFC3339 (struct timespec *ts, char *s)
|
||||
|
|
Loading…
Reference in a new issue