Skip to content

Commit 61e164c

Browse files
authored
Merge pull request #373 from hyp/hdrhdr2
[apple/stable/20191106] fix indexstore.h header for gcc
2 parents 7ca2386 + 2f25004 commit 61e164c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/include/indexstore/indexstore.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,13 @@
9898

9999
#define INDEXSTORE_OPTIONS_ATTRS INDEXSTORE_OPEN_ENUM_ATTR INDEXSTORE_FLAG_ENUM_ATTR
100100

101+
#if defined(__has_extension)
101102
#if __has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum)
102103
# define INDEXSTORE_OPTIONS(_type, _name) enum INDEXSTORE_OPTIONS_ATTRS _name : _type _name; enum INDEXSTORE_OPTIONS_ATTRS _name : _type
103-
#else
104+
#endif
105+
#endif
106+
107+
#ifndef INDEXSTORE_OPTIONS
104108
# define INDEXSTORE_OPTIONS(_type, _name) _type _name; enum INDEXSTORE_OPTIONS_ATTRS
105109
#endif
106110

0 commit comments

Comments
 (0)