summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/pritime.h
blob: fea5e62cf4ce0adef26fd8fbf9a71958879057d0 (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
/*
 * 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 _PRITIME_H
#define _PRITIME_H

#include <inttypes.h>
#include <rtems/score/cpuopts.h>

#if __RTEMS_SIZEOF_TIME_T__ == 8
#define PRIdtime_t PRId64
#elif __RTEMS_SIZEOF_TIME_T__ == 4
#define PRIdtime_t PRId32
#else
#error "unsupported size of time_t"
#endif

#endif