Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:49

0001 /*
0002  * Copyright (c) 2011 by
0003  * Ralf Corsépius, Ulm, Germany. All rights reserved.
0004  *
0005  * Permission to use, copy, modify, and distribute this software
0006  * is freely granted, provided that this notice is preserved.
0007  */
0008 
0009 /*
0010  * Helper macro to print "time_t"
0011  */
0012 
0013 #ifndef _PRITIME_H
0014 #define _PRITIME_H
0015 
0016 #include <inttypes.h>
0017 #include <rtems/score/cpuopts.h>
0018 
0019 #if __RTEMS_SIZEOF_TIME_T__ == 8
0020 #define PRIdtime_t PRId64
0021 #elif __RTEMS_SIZEOF_TIME_T__ == 4
0022 #define PRIdtime_t PRId32
0023 #else
0024 #error "unsupported size of time_t"
0025 #endif
0026 
0027 #endif