summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-13 13:08:12 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-13 13:08:12 +0000
commit7036ed00493d9b7103574118fd23cfca6ca266c7 (patch)
treed20e1a140c753c7fe41a39e3f1b463a3c1df7dd4 /testsuites
parent2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7036ed00493d9b7103574118fd23cfca6ca266c7.tar.bz2
2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/primode.h: New. * Makefile.am: Add support/include/primode.h
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/ChangeLog6
-rw-r--r--testsuites/Makefile.am1
-rw-r--r--testsuites/support/include/primode.h30
3 files changed, 37 insertions, 0 deletions
diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog
index 8dcac179fe..e183b77cbd 100644
--- a/testsuites/ChangeLog
+++ b/testsuites/ChangeLog
@@ -1,8 +1,14 @@
+2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * support/include/primode.h: New.
+ * Makefile.am: Add support/include/primode.h
+
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRItime_t.
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* support/include/pritime.h: New.
* Makefile.am: Add support/include/pritime.h
diff --git a/testsuites/Makefile.am b/testsuites/Makefile.am
index 0766c663fe..6a3a7b4fcb 100644
--- a/testsuites/Makefile.am
+++ b/testsuites/Makefile.am
@@ -12,6 +12,7 @@ noinst_HEADERS += support/include/buffer_test_io.h
noinst_HEADERS += support/include/test_support.h
noinst_HEADERS += support/include/tmacros.h
noinst_HEADERS += support/include/pritime.h
+noinst_HEADERS += support/include/primode.h
SUBDIRS = @subdirs@
diff --git a/testsuites/support/include/primode.h b/testsuites/support/include/primode.h
new file mode 100644
index 0000000000..f1efe7ea02
--- /dev/null
+++ b/testsuites/support/include/primode.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2011 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+/*
+ * Helper macro to print "time_t"
+ */
+
+#ifndef _PRIMODE_H
+#define _PRIMODE_H
+
+#include <inttypes.h>
+
+#ifndef SIZEOF_MODE_T
+#error "missing SIZEOF_MODE_T"
+#endif
+
+#if SIZEOF_MODE_T == 8
+#define PRIomode_t PRIo64
+#elif SIZEOF_MODE_T == 4
+#define PRIomode_t PRIo32
+#else
+#error "unsupported size of mode_t"
+#endif
+
+#endif