summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/support/include')
-rw-r--r--testsuites/support/include/primode.h9
-rw-r--r--testsuites/support/include/pritime.h9
2 files changed, 6 insertions, 12 deletions
diff --git a/testsuites/support/include/primode.h b/testsuites/support/include/primode.h
index f1efe7ea02..551ae22ea6 100644
--- a/testsuites/support/include/primode.h
+++ b/testsuites/support/include/primode.h
@@ -14,14 +14,11 @@
#define _PRIMODE_H
#include <inttypes.h>
+#include <rtems/score/cpuopts.h>
-#ifndef SIZEOF_MODE_T
-#error "missing SIZEOF_MODE_T"
-#endif
-
-#if SIZEOF_MODE_T == 8
+#if __RTEMS_SIZEOF_MODE_T__ == 8
#define PRIomode_t PRIo64
-#elif SIZEOF_MODE_T == 4
+#elif __RTEMS_SIZEOF_MODE_T__ == 4
#define PRIomode_t PRIo32
#else
#error "unsupported size of mode_t"
diff --git a/testsuites/support/include/pritime.h b/testsuites/support/include/pritime.h
index 97117b94fa..fea5e62cf4 100644
--- a/testsuites/support/include/pritime.h
+++ b/testsuites/support/include/pritime.h
@@ -14,14 +14,11 @@
#define _PRITIME_H
#include <inttypes.h>
+#include <rtems/score/cpuopts.h>
-#ifndef SIZEOF_TIME_T
-#error "missing SIZEOF_TIME_T"
-#endif
-
-#if SIZEOF_TIME_T == 8
+#if __RTEMS_SIZEOF_TIME_T__ == 8
#define PRIdtime_t PRId64
-#elif SIZEOF_TIME_T == 4
+#elif __RTEMS_SIZEOF_TIME_T__ == 4
#define PRIdtime_t PRId32
#else
#error "unsupported size of time_t"