summaryrefslogtreecommitdiff
path: root/regenc.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-12 10:16:11 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-12 17:45:39 +0900
commitf1f0cc14cc7d3f9be35b203e5583f9224b1e2387 ()
treeed5a129cf8c2e2696bb7b32a9fcf1c0ae78caad9 /regenc.h
parent131ba059cad0cff223842a739b2bc87425613b49 (diff)
Separate `__has_attribute` from `defined(__has_attribute)`
Fix Visual C warnings: ``` regenc.h(121): warning C4067: unexpected tokens following preprocessor directive - expected a newline ```
Notes: Merged: https://.com/ruby/ruby/pull/13304
-rw-r--r--regenc.h4
1 files changed, 3 insertions, 1 deletions
@@ -118,8 +118,10 @@ typedef struct {
typedef struct {
short int len;
-#if defined(__has_attribute) && __has_attribute(nonstring)
__attribute__((nonstring))
#endif
const UChar name[6];
int ctype;