From 025e9b46ddcf40fa23c435b365ffe56917a1960b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 9 Mar 2016 02:09:46 +0100 Subject: [PATCH] cosmetics --- include/xbt/base.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/xbt/base.h b/include/xbt/base.h index bada2f8db8..d042d98d86 100644 --- a/include/xbt/base.h +++ b/include/xbt/base.h @@ -21,20 +21,14 @@ depending on which version is available (__USE_MINGW_ANSI_STDIO): */ #ifdef __MINGW32__ #include -#endif -#if defined(__MINGW32__) && defined(__MINGW_PRINTF_FORMAT) # define XBT_ATTRIB_PRINTF( format_idx, arg_idx ) \ __attribute__((__format__ (__MINGW_PRINTF_FORMAT, format_idx, arg_idx))) -#else - # define XBT_ATTRIB_PRINTF( format_idx, arg_idx ) \ - __attribute__((__format__ (__printf__, format_idx, arg_idx))) -#endif - -#if defined(__MINGW32__) && defined(__MINGW_SCANF_FORMAT) # define XBT_ATTRIB_SCANF( format_idx, arg_idx ) \ __attribute__((__MINGW_SCANF_FORMAT (__scanf__, format_idx, arg_idx))) #else + # define XBT_ATTRIB_PRINTF( format_idx, arg_idx ) \ + __attribute__((__format__ (__printf__, format_idx, arg_idx))) # define XBT_ATTRIB_SCANF( format_idx, arg_idx ) \ __attribute__((__format__ (__scanf__, format_idx, arg_idx))) #endif -- 2.20.1