OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid_time.h versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid_time.h 1.4 -> 1.5

--- uuid_time.h  2008/03/07 09:28:15     1.4
+++ uuid_time.h  2008/03/07 09:45:06     1.5
@@ -59,6 +59,17 @@
 #define time_usleep       TIME_CONCAT(TIME_PREFIX,time_usleep)
 #endif
 
+/* minimum C++ support */
+#ifdef __cplusplus
+#define DECLARATION_BEGIN extern "C" {
+#define DECLARATION_END   }
+#else
+#define DECLARATION_BEGIN
+#define DECLARATION_END
+#endif
+
+DECLARATION_BEGIN
+
 #ifndef HAVE_STRUCT_TIMEVAL
 struct timeval { long tv_sec; long tv_usec; };
 #endif
@@ -66,5 +77,7 @@
 extern int time_gettimeofday(struct timeval *);
 extern int time_usleep(long usec);
 
+DECLARATION_END
+
 #endif /* __UUID_TIME_H__ */
 

CVSTrac 2.0.1