| ... | @@ -469,7 +469,10 @@ | ... | @@ -469,7 +469,10 @@ |
| 469 | instance, with GCC, -std=gnu11 will have C99-compliant scanf with | 469 | instance, with GCC, -std=gnu11 will have C99-compliant scanf with |
| 470 | or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the | 470 | or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the |
| 471 | old extension. */ | 471 | old extension. */ |
| 472 | #if (defined __USE_GNU							\ | 472 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ < 7) |
| | 473 | /* support for ISOC99 was added in glibc-2.7 */ |
| | 474 | # define __GLIBC_USE_DEPRECATED_SCANF 1 |
| | 475 | #elif (defined __USE_GNU							\ |
| 473 | && (defined __cplusplus						\ | 476 | && (defined __cplusplus						\ |
| 474 | 	 ? (__cplusplus < 201103L && !defined __GXX_EXPERIMENTAL_CXX0X__) \ | 477 | 	 ? (__cplusplus < 201103L && !defined __GXX_EXPERIMENTAL_CXX0X__) \ |
| 475 | 	 : (!defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L))) | 478 | 	 : (!defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L))) |