forked from boostorg/config
Merge pull request #75 from morinmorin/fix/guard_attribute_name
Guard attribute names with double underscores
This commit is contained in:
@ -261,7 +261,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Clang has supported the 'unused' attribute since the first release.
|
// Clang has supported the 'unused' attribute since the first release.
|
||||||
#define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
|
#define BOOST_ATTRIBUTE_UNUSED __attribute__((__unused__))
|
||||||
|
|
||||||
#ifndef BOOST_COMPILER
|
#ifndef BOOST_COMPILER
|
||||||
# define BOOST_COMPILER "Clang version " __clang_version__
|
# define BOOST_COMPILER "Clang version " __clang_version__
|
||||||
|
@ -276,7 +276,7 @@
|
|||||||
//
|
//
|
||||||
// Unused attribute:
|
// Unused attribute:
|
||||||
#if __GNUC__ >= 4
|
#if __GNUC__ >= 4
|
||||||
# define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
|
# define BOOST_ATTRIBUTE_UNUSED __attribute__((__unused__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BOOST_COMPILER
|
#ifndef BOOST_COMPILER
|
||||||
|
Reference in New Issue
Block a user