summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/psxtests/include/pmacros.h2
-rw-r--r--c/src/tests/psxtests/support/include/pmacros.h2
-rw-r--r--testsuites/psxtests/include/pmacros.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/include/pmacros.h b/c/src/tests/psxtests/include/pmacros.h
index 1f15dac9c0..38d0ee1904 100644
--- a/c/src/tests/psxtests/include/pmacros.h
+++ b/c/src/tests/psxtests/include/pmacros.h
@@ -38,6 +38,7 @@
#define TM_NOVEMBER 12
#define TM_DECEMBER 12
+#ifndef build_time
#define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
{ (TM)->tm_year = YR; \
(TM)->tm_mon = MON; \
@@ -46,6 +47,7 @@
(TM)->tm_hour = HR; \
(TM)->tm_min = MIN; \
(TM)->tm_sec = SEC; }
+#endif
#define set_time( WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
do { \
diff --git a/c/src/tests/psxtests/support/include/pmacros.h b/c/src/tests/psxtests/support/include/pmacros.h
index 1f15dac9c0..38d0ee1904 100644
--- a/c/src/tests/psxtests/support/include/pmacros.h
+++ b/c/src/tests/psxtests/support/include/pmacros.h
@@ -38,6 +38,7 @@
#define TM_NOVEMBER 12
#define TM_DECEMBER 12
+#ifndef build_time
#define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
{ (TM)->tm_year = YR; \
(TM)->tm_mon = MON; \
@@ -46,6 +47,7 @@
(TM)->tm_hour = HR; \
(TM)->tm_min = MIN; \
(TM)->tm_sec = SEC; }
+#endif
#define set_time( WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
do { \
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index 1f15dac9c0..38d0ee1904 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -38,6 +38,7 @@
#define TM_NOVEMBER 12
#define TM_DECEMBER 12
+#ifndef build_time
#define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
{ (TM)->tm_year = YR; \
(TM)->tm_mon = MON; \
@@ -46,6 +47,7 @@
(TM)->tm_hour = HR; \
(TM)->tm_min = MIN; \
(TM)->tm_sec = SEC; }
+#endif
#define set_time( WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
do { \