projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
move repository from m6w6 to awesomized
[m6w6/libmemcached]
/
src
/
p9y
/
gettimeofday.hpp
diff --git
a/src/p9y/gettimeofday.hpp
b/src/p9y/gettimeofday.hpp
index aaba58bb551a5fda7edd765bb446bb4a4e78d16e..8eb06fa24f629780b76b189f0063191b0e29e6f4 100644
(file)
--- a/
src/p9y/gettimeofday.hpp
+++ b/
src/p9y/gettimeofday.hpp
@@
-1,12
+1,27
@@
#pragma once
#pragma once
-#include "libmemcached-1/platform.h"
+#include "libmemcached-1.0/platform.h"
+
+#if defined __cplusplus
+# include <ctime>
+#else
+# include <time.h>
+#endif
-#include <time.h>
#if defined HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#if !defined HAVE_GETTIMEOFDAY
#if defined HAVE_SYS_TIME_H
# include <sys/time.h>
#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);
int gettimeofday(struct timeval* tp, struct timezone* tzp);
+# if defined __cplusplus
+};
+#endif
#endif
#endif