summaryrefslogtreecommitdiff
path: root/ace/OS.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS.h')
-rw-r--r--ace/OS.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/OS.h b/ace/OS.h
index d9645985ef4..6cccabb46d5 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -2733,9 +2733,14 @@ public:
#undef getpwnam_r
#endif /* ACE_HAS_BROKEN_R_ROUTINES */
+#if defined (difftime)
+#define ACE_DIFFTIME(t1, t0) difftime(t1,t0)
+#undef difftime
+#endif /* difftime */
+
// = A set of wrappers for operations on time.
- static time_t time (time_t *tloc);
static double difftime (time_t t1, time_t t0);
+ static time_t time (time_t *tloc);
static time_t mktime (struct tm *timeptr);
static struct tm *localtime (const time_t *clock);
static struct tm *localtime_r (const time_t *clock, struct tm *res);