ossp-pkg/uuid/uuid_time.h 1.3 -> 1.4
--- uuid_time.h 2008/03/06 12:14:49 1.3
+++ uuid_time.h 2008/03/07 09:28:15 1.4
@@ -44,6 +44,21 @@
#include <sys/types.h>
#endif
+#define TIME_PREFIX uuid_
+
+/* embedding support */
+#ifdef TIME_PREFIX
+#if defined(__STDC__) || defined(__cplusplus)
+#define __TIME_CONCAT(x,y) x ## y
+#define TIME_CONCAT(x,y) __TIME_CONCAT(x,y)
+#else
+#define __TIME_CONCAT(x) x
+#define TIME_CONCAT(x,y) __TIME_CONCAT(x)y
+#endif
+#define time_gettimeofday TIME_CONCAT(TIME_PREFIX,time_gettimeofday)
+#define time_usleep TIME_CONCAT(TIME_PREFIX,time_usleep)
+#endif
+
#ifndef HAVE_STRUCT_TIMEVAL
struct timeval { long tv_sec; long tv_usec; };
#endif
|
|