mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 15:00:22 +08:00
2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/primode.h: New. * Makefile.am: Add support/include/primode.h
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* support/include/primode.h: New.
|
||||
* Makefile.am: Add support/include/primode.h
|
||||
|
||||
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* support/include/tmacros.h: Remove PRItime_t.
|
||||
|
||||
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* support/include/pritime.h: New.
|
||||
* Makefile.am: Add support/include/pritime.h
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ noinst_HEADERS += support/include/buffer_test_io.h
|
||||
noinst_HEADERS += support/include/test_support.h
|
||||
noinst_HEADERS += support/include/tmacros.h
|
||||
noinst_HEADERS += support/include/pritime.h
|
||||
noinst_HEADERS += support/include/primode.h
|
||||
|
||||
SUBDIRS = @subdirs@
|
||||
|
||||
|
||||
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user