X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fp9y%2Fgettimeofday.hpp;h=8eb06fa24f629780b76b189f0063191b0e29e6f4;hb=fd5ff116e327551348907191fb38f2eddf2cf4c1;hp=02b8d6d93e7551692cf2161714f546cc5c6f4f98;hpb=2f289c64f625962d945ec3bee80f36bc5c61ee35;p=awesomized%2Flibmemcached diff --git a/src/p9y/gettimeofday.hpp b/src/p9y/gettimeofday.hpp index 02b8d6d9..8eb06fa2 100644 --- a/src/p9y/gettimeofday.hpp +++ b/src/p9y/gettimeofday.hpp @@ -2,11 +2,26 @@ #include "libmemcached-1.0/platform.h" -#include +#if defined __cplusplus +# include +#else +# include +#endif + #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