Changeset 1391 for branches/GNU/src/gcc/include/ansidecl.h
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/include/ansidecl.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 137 137 #endif /* GCC_VERSION */ 138 138 139 #if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) 139 #if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus)) 140 140 /* All known AIX compilers implement these things (but don't always 141 141 define __STDC__). The RISC/OS MIPS compiler defines these things 142 142 in SVR4 mode, but does not define __STDC__. */ 143 /* eraxxon@alumni.rice.edu: The Compaq C++ compiler, unlike many other 144 C++ compilers, does not define __STDC__, though it acts as if this 145 was so. (Verified versions: 5.7, 6.2, 6.3, 6.5) */ 143 146 144 147 #define ANSI_PROTOTYPES 1 … … 266 269 #endif /* ATTRIBUTE_NORETURN */ 267 270 271 /* Attribute `nonnull' was valid as of gcc 3.3. */ 272 #ifndef ATTRIBUTE_NONNULL 273 # if (GCC_VERSION >= 3003) 274 # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) 275 # else 276 # define ATTRIBUTE_NONNULL(m) 277 # endif /* GNUC >= 3.3 */ 278 #endif /* ATTRIBUTE_NONNULL */ 279 280 /* Use ATTRIBUTE_PRINTF when the format specifier must not be NULL. 281 This was the case for the `printf' format attribute by itself 282 before GCC 3.3, but as of 3.3 we need to add the `nonnull' 283 attribute to retain this behavior. */ 268 284 #ifndef ATTRIBUTE_PRINTF 269 #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) 285 #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m) 270 286 #define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2) 271 287 #define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3) … … 274 290 #define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6) 275 291 #endif /* ATTRIBUTE_PRINTF */ 292 293 /* Use ATTRIBUTE_NULL_PRINTF when the format specifier may be NULL. A 294 NULL format specifier was allowed as of gcc 3.3. */ 295 #ifndef ATTRIBUTE_NULL_PRINTF 296 # if (GCC_VERSION >= 3003) 297 # define ATTRIBUTE_NULL_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) 298 # else 299 # define ATTRIBUTE_NULL_PRINTF(m, n) 300 # endif /* GNUC >= 3.3 */ 301 # define ATTRIBUTE_NULL_PRINTF_1 ATTRIBUTE_NULL_PRINTF(1, 2) 302 # define ATTRIBUTE_NULL_PRINTF_2 ATTRIBUTE_NULL_PRINTF(2, 3) 303 # define ATTRIBUTE_NULL_PRINTF_3 ATTRIBUTE_NULL_PRINTF(3, 4) 304 # define ATTRIBUTE_NULL_PRINTF_4 ATTRIBUTE_NULL_PRINTF(4, 5) 305 # define ATTRIBUTE_NULL_PRINTF_5 ATTRIBUTE_NULL_PRINTF(5, 6) 306 #endif /* ATTRIBUTE_NULL_PRINTF */ 276 307 277 308 /* We use __extension__ in some places to suppress -pedantic warnings -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.