Skip to content

Commit 00b26b8

Browse files
committed
Post-push fix 18222041, cset 7650 from trunk
1 parent 116d46b commit 00b26b8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

include/my_compiler.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@
5959
# define MY_ALIGNED(size)
6060
#endif
6161

62-
/*
63-
Disable __attribute__ for Sun Studio and Visual Studio.
64-
Note that Sun Studio supports some __attribute__ variants,
65-
but not format or unused which we use quite a lot.
66-
67-
Sic: We should not (re-)define identifiers that begin with
68-
an underscore followed by an uppercase letter or another underscore.
69-
*/
70-
#if defined __SUNPRO_C || defined __SUNPRO_CC || defined _MSC_VER
71-
# define __attribute__(A)
72-
#endif
73-
7462

7563
/**
7664
C++ Type Traits
@@ -110,4 +98,16 @@ struct my_aligned_storage
11098

11199
#endif /* __cplusplus */
112100

101+
/*
102+
Disable __attribute__ for Sun Studio and Visual Studio.
103+
Note that Sun Studio supports some __attribute__ variants,
104+
but not format or unused which we use quite a lot.
105+
106+
Sic: We should not (re-)define identifiers that begin with
107+
an underscore followed by an uppercase letter or another underscore.
108+
*/
109+
#if defined __SUNPRO_C || defined __SUNPRO_CC || defined _MSC_VER
110+
# define __attribute__(A)
111+
#endif
112+
113113
#endif /* MY_COMPILER_INCLUDED */

0 commit comments

Comments
 (0)