summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/primode.h
blob: f1efe7ea02313c591706aac27af89eedb0e558cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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