mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
131ba059ca
commit
f1f0cc14cc
Notes:
git
2025-05-12 08:45:55 +00:00
1 changed files with 3 additions and 1 deletions
4
regenc.h
4
regenc.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue