Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ed0034c

Browse files
committed
Add GNUC extension macro
Signed-off-by: Seungha Son <seungha.son@samsung.com>
1 parent eef40ed commit ed0034c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎macro/s_macros.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#ifndef __S_MACROS_H__
22
#define __S_MACROS_H__
33

4+
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)
5+
#define S_GNUC_EXTENSION __extension__
6+
#else
7+
#define S_GNUC_EXTENSION
8+
#endif
9+
410
#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
511
#define _S_BOOLEAN_EXPR(expr) \
612
S_GNUC_EXTENSION ({ \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /