From 7036ed00493d9b7103574118fd23cfca6ca266c7 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 13 Oct 2011 13:08:12 +0000 Subject: =?UTF-8?q?2011-10-13=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support/include/primode.h: New. * Makefile.am: Add support/include/primode.h --- testsuites/support/include/primode.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testsuites/support/include/primode.h (limited to 'testsuites/support') diff --git a/testsuites/support/include/primode.h b/testsuites/support/include/primode.h new file mode 100644 index 0000000000..f1efe7ea02 --- /dev/null +++ b/testsuites/support/include/primode.h @@ -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 + +#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 -- cgit v1.2.3