comparison lib/error.h @ 411:19dca1d4d7f6

Use __-protected versions of `format' and `printf' only with gcc-2.7 and later.
author Jim Meyering <jim@meyering.net>
date Thu, 27 Apr 1995 17:04:23 +0000
parents 746d00bc937d
children 79626753a234
comparison
equal deleted inserted replaced
410:3021132524bb 411:19dca1d4d7f6
17 17
18 #ifndef _error_h_ 18 #ifndef _error_h_
19 #define _error_h_ 19 #define _error_h_
20 20
21 #ifndef __attribute__ 21 #ifndef __attribute__
22 /* This feature is available in gcc versions 2.5 and later. */
22 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ 23 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
23 # define __attribute__(Spec) /* empty */ 24 # define __attribute__(Spec) /* empty */
25 # endif
26 /* The __-protected variants of `format' and `printf' attributes
27 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
28 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
29 # define __format__ format
30 # define __printf__ printf
24 # endif 31 # endif
25 #endif 32 #endif
26 33
27 #if __STDC__ 34 #if __STDC__
28 void error (int, int, const char *, ...) \ 35 void error (int, int, const char *, ...) \