diff options
Diffstat (limited to 'testsuites/include/primode.h')
-rw-r--r-- | testsuites/include/primode.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuites/include/primode.h b/testsuites/include/primode.h new file mode 100644 index 0000000..551ae22 --- /dev/null +++ b/testsuites/include/primode.h @@ -0,0 +1,27 @@ +/* + * 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> +#include <rtems/score/cpuopts.h> + +#if __RTEMS_SIZEOF_MODE_T__ == 8 +#define PRIomode_t PRIo64 +#elif __RTEMS_SIZEOF_MODE_T__ == 4 +#define PRIomode_t PRIo32 +#else +#error "unsupported size of mode_t" +#endif + +#endif |