diff options
| author | Paul Eggert | 2011-04-05 12:59:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-05 12:59:08 -0700 |
| commit | aa18133456139b8ad21b2e83f040bae601bdf98f (patch) | |
| tree | 5391aa2d158a7e8e37fdaa4cfcaab68cfc64eb7d | |
| parent | 9e0e57c7d64492351f4a7ce1c01054d4d43a1bcc (diff) | |
| download | emacs-aa18133456139b8ad21b2e83f040bae601bdf98f.tar.gz emacs-aa18133456139b8ad21b2e83f040bae601bdf98f.zip | |
* configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 14 |
2 files changed, 18 insertions, 0 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-04-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros. | ||
| 4 | |||
| 1 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Replace 2 copies of readlink code with 1 gnulib version (Bug#8401). | 7 | Replace 2 copies of readlink code with 1 gnulib version (Bug#8401). |
diff --git a/configure.in b/configure.in index 77deef8dba5..fef19f27642 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3581,6 +3581,20 @@ typedef unsigned size_t; | |||
| 3581 | #define EXTERNALLY_VISIBLE | 3581 | #define EXTERNALLY_VISIBLE |
| 3582 | #endif | 3582 | #endif |
| 3583 | 3583 | ||
| 3584 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) | ||
| 3585 | # define ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) | ||
| 3586 | #else | ||
| 3587 | # define ATTRIBUTE_FORMAT(spec) /* empty */ | ||
| 3588 | #endif | ||
| 3589 | |||
| 3590 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) | ||
| 3591 | # define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \ | ||
| 3592 | ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument)) | ||
| 3593 | #else | ||
| 3594 | # define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \ | ||
| 3595 | ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) | ||
| 3596 | #endif | ||
| 3597 | |||
| 3584 | /* Some versions of GNU/Linux define noinline in their headers. */ | 3598 | /* Some versions of GNU/Linux define noinline in their headers. */ |
| 3585 | #ifdef noinline | 3599 | #ifdef noinline |
| 3586 | #undef noinline | 3600 | #undef noinline |