summaryrefslogtreecommitdiff
path: root/PACE/pace/win32/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'PACE/pace/win32/time.h')
-rw-r--r--PACE/pace/win32/time.h42
1 files changed, 28 insertions, 14 deletions
diff --git a/PACE/pace/win32/time.h b/PACE/pace/win32/time.h
index 8358ec9124b..aeaf12e0771 100644
--- a/PACE/pace/win32/time.h
+++ b/PACE/pace/win32/time.h
@@ -23,51 +23,65 @@
extern "C" {
#endif /* PACE_HAS_CPLUSPLUS */
-#define PACE_CLK_TCK CLK_TCK
-#define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC
-#define PACE_CLOCK_REALTIME CLOCK_REALTIME
-#define PACE_NULL NULL
-#define PACE_TIMER_ABSTIME TIMER_ABSTIME
+# ifndef PACE_CLK_TCK
+# define PACE_CLK_TCK CLK_TCK
+# endif /* PACE_CLK_TCK */
+
+# ifndef PACE_CLOCKS_PER_SEC
+# define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC
+# endif /* PACE_CLOCKS_PER_SEC */
+
+# ifndef PACE_CLOCK_REALTIME
+# define PACE_CLOCK_REALTIME CLOCK_REALTIME
+# endif /* PACE_CLOCK_REALTIME */
+
+# ifndef PACE_NULL
+# define PACE_NULL NULL
+# endif /* PACE_NULL */
+
+# ifndef PACE_TIMER_ABSTIME
+# define PACE_TIMER_ABSTIME TIMER_ABSTIME
+# endif /* PACE_TIMER_ABSTIME */
#ifndef PACE_CLOCKID_T
-#define PACE_CLOCKID_T
+#define PACE_CLOCKID_T 1
typedef int clockid_t;
typedef clockid_t pace_clockid_t;
#endif /* PACE_CLOCKID_T */
#ifndef PACE_CLOCK_T
-#define PACE_CLOCK_T
+#define PACE_CLOCK_T 1
typedef clock_t pace_clock_t;
#endif /* PACE_CLOCK_T */
#ifndef PACE_TIMER_T
-#define PACE_TIMER_T
+#define PACE_TIMER_T 1
typedef long timer_t;
typedef timer_t pace_timer_t;
#endif /* PACE_TIMER_T */
#ifndef PACE_TIME_T
-#define PACE_TIME_T
+#define PACE_TIME_T 1
typedef time_t pace_time_t;
#endif /* PACE_TIME_T */
#ifndef PACE_TM
-#define PACE_TM
+#define PACE_TM 1
typedef struct tm pace_tm;
#endif /* PACE_TM */
#ifndef PACE_TIMESPEC
-#define PACE_TIMESPEC
+#define PACE_TIMESPEC 1
typedef struct timespec pace_timespec;
#endif /* PACE_TIMESPEC */
#ifndef PACE_ITIMERSPEC
-#define PACE_ITIMERSPEC
+#define PACE_ITIMERSPEC 1
typedef struct itimerspec pace_itimerspec;
#endif /* PACE_ITIMERSPEC */
#ifndef PACE_SIGVAL
-#define PACE_SIGVAL
+#define PACE_SIGVAL 1
typedef union sigval {
int sival_int; /* integer value */
void * sival_ptr; /* pointer value */
@@ -75,7 +89,7 @@ extern "C" {
#endif /* PACE_SIGVAL */
#ifndef PACE_SIGEVENT
-#define PACE_SIGEVENT
+#define PACE_SIGEVENT 1
typedef struct sigevent {
int sigev_notify; /* notification mode */
int sigev_signo; /* signal number */