|
From: | Paul Eggert |
Subject: | Re: [PATCH][BZ #16907] Do not disable __attribute__ when you include argp.h |
Date: | Fri, 23 May 2014 07:53:11 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Ondřej Bílka wrote:
CCing gnulib. Could this be backported also there or do you have different solution?
We solved this problem in a different way years ago, using something like this:
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 7) # define _GL_ATTRIBUTE_FORMAT(s) __attribute__ ((__format__ s)) #else # define _GL_ATTRIBUTE_FORMAT(s) #endifand then using _GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)) later, instead of __attribute__ ((__format__ (__printf__, 2, 3))). Presumably glibc could do something similar. Glibc could use a different name; that's all right, gnulib will just switch to the name that glibc uses.
[Prev in Thread] | Current Thread | [Next in Thread] |