This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/57665] cpp: stringification does not work for __GNUC__


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57665

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This works fine:

#define SJOIN(A,B,C) #A "." #B "." #C
#define JOIN(A,B,C) SJOIN(A, B, C)
#define GCC_VERSION JOIN(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]