5
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2011 by |
---|
3 | * Ralf Corsépius, Ulm, Germany. All rights reserved. |
---|
4 | * |
---|
5 | * Permission to use, copy, modify, and distribute this software |
---|
6 | * is freely granted, provided that this notice is preserved. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Helper macro to print "time_t" |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef _PRIMODE_H |
---|
14 | #define _PRIMODE_H |
---|
15 | |
---|
16 | #include <inttypes.h> |
---|
17 | #include <rtems/score/cpuopts.h> |
---|
18 | |
---|
19 | #if __RTEMS_SIZEOF_MODE_T__ == 8 |
---|
20 | #define PRIomode_t PRIo64 |
---|
21 | #elif __RTEMS_SIZEOF_MODE_T__ == 4 |
---|
22 | #define PRIomode_t PRIo32 |
---|
23 | #else |
---|
24 | #error "unsupported size of mode_t" |
---|
25 | #endif |
---|
26 | |
---|
27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.