Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gcc 2.4+ is not quite a recent version anymore
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 23:55:28 +0000 (00:55 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 23:55:28 +0000 (00:55 +0100)
include/xbt/base.h

index e461880..5a95c38 100644 (file)
@@ -16,9 +16,6 @@
   #define _GNU_SOURCE
 #endif
 
-/* Attributes are only in recent versions of GCC */
-#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4))
-
 /* On MinGW, stdio.h defines __MINGW_PRINTF_FORMAT and __MINGW_SCANF_FORMAT
    which are the suitable format style (either gnu_printf or ms_printf)
    depending on which version is available (__USE_MINGW_ANSI_STDIO): */
 # endif
 # undef _XBT_NEED_INIT_PRAGMA
 
-#else
-# define XBT_ATTRIB_PRINTF( format_idx, arg_idx )
-# define XBT_ATTRIB_SCANF( format_idx, arg_idx )
-# define XBT_ATTRIB_NORETURN
-# define XBT_ATTRIB_UNUSED
-# define _XBT_GNUC_CONSTRUCTOR(prio)
-# define _XBT_GNUC_DESTRUCTOR(prio)
-# define _XBT_NEED_INIT_PRAGMA 1
-
-#endif                          /* gcc or MSVC else */
-
 /* inline and __FUNCTION__ are only in GCC when -ansi is off */
 
 #if defined(__GNUC__) && ! defined(__STRICT_ANSI__)