X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fp9y%2Fgettimeofday.hpp;h=8eb06fa24f629780b76b189f0063191b0e29e6f4;hb=6ca93394f4d9913e8324910c5a1353e5b9adf7a6;hp=aaba58bb551a5fda7edd765bb446bb4a4e78d16e;hpb=3ffc968aaf182bf1ff1e18157c7bde2bdb41668d;p=awesomized%2Flibmemcached diff --git a/src/p9y/gettimeofday.hpp b/src/p9y/gettimeofday.hpp index aaba58bb..8eb06fa2 100644 --- a/src/p9y/gettimeofday.hpp +++ b/src/p9y/gettimeofday.hpp @@ -1,12 +1,27 @@ #pragma once -#include "libmemcached-1/platform.h" +#include "libmemcached-1.0/platform.h" + +#if defined __cplusplus +# include +#else +# include +#endif -#include #if defined HAVE_SYS_TIME_H # include #endif #if !defined HAVE_GETTIMEOFDAY +# define P9Y_NEED_GETTIMEOFDAY +#endif + +#if defined P9Y_NEED_GETTIMEOFDAY +# if defined __cplusplus +extern "C" { +# endif int gettimeofday(struct timeval* tp, struct timezone* tzp); +# if defined __cplusplus +}; +#endif #endif