consolidate
[m6w6/libmemcached] / src / p9y / gettimeofday.hpp
1 #pragma once
2
3 #include "libmemcached-1/platform.h"
4
5 #if defined __cplusplus
6 # include <ctime>
7 #else
8 # include <time.h>
9 #endif
10
11 #if defined HAVE_SYS_TIME_H
12 # include <sys/time.h>
13 #endif
14
15 #if !defined HAVE_GETTIMEOFDAY
16 # define P9Y_NEED_GETTIMEOFDAY
17 #endif
18
19 #if defined P9Y_NEED_GETTIMEOFDAY
20 # if defined __cplusplus
21 extern "C" {
22 # endif
23 int gettimeofday(struct timeval* tp, struct timezone* tzp);
24 # if defined __cplusplus
25 };
26 #endif
27 #endif