Separate __has_attribute from defined(__has_attribute)

Fix Visual C warnings:
```
regenc.h(121): warning C4067: unexpected tokens following preprocessor directive - expected a newline
```
This commit is contained in:
Nobuyoshi Nakada 2025-05-12 10:16:11 +09:00 committed by Nobuyoshi Nakada
parent 131ba059ca
commit f1f0cc14cc
Notes: git 2025-05-12 08:45:55 +00:00

View File

@ -118,8 +118,10 @@ typedef struct {
typedef struct {
short int len;
#if defined(__has_attribute) && __has_attribute(nonstring)
#if defined(__has_attribute)
# if __has_attribute(nonstring)
__attribute__((nonstring))
# endif
#endif
const UChar name[6];
int ctype;