4.115
Last change
on this file since 7036ed0 was
7036ed0,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/13/11 at 13:08:12
|
2011-10-13 Ralf Corsépius <ralf.corsepius@…>
- support/include/primode.h: New.
- Makefile.am: Add support/include/primode.h
|
-
Property mode set to
100644
|
File size:
540 bytes
|
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 | |
---|
18 | #ifndef SIZEOF_MODE_T |
---|
19 | #error "missing SIZEOF_MODE_T" |
---|
20 | #endif |
---|
21 | |
---|
22 | #if SIZEOF_MODE_T == 8 |
---|
23 | #define PRIomode_t PRIo64 |
---|
24 | #elif SIZEOF_MODE_T == 4 |
---|
25 | #define PRIomode_t PRIo32 |
---|
26 | #else |
---|
27 | #error "unsupported size of mode_t" |
---|
28 | #endif |
---|
29 | |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.