Skip to content

Commit f1f0cc1

Browse files
committed
Separate __has_attribute from defined(__has_attribute)
Fix Visual C warnings: ``` regenc.h(121): warning C4067: unexpected tokens following preprocessor directive - expected a newline ```
1 parent 131ba05 commit f1f0cc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

regenc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ typedef struct {
118118

119119
typedef struct {
120120
short int len;
121-
#if defined(__has_attribute) && __has_attribute(nonstring)
121+
#if defined(__has_attribute)
122+
# if __has_attribute(nonstring)
122123
__attribute__((nonstring))
124+
# endif
123125
#endif
124126
const UChar name[6];
125127
int ctype;

0 commit comments

Comments
 (0)