Skip to content

Commit

Permalink
Merge pull request #373 from hyp/hdrhdr2
Browse files Browse the repository at this point in the history
[apple/stable/20191106] fix indexstore.h header for gcc
  • Loading branch information
hyp authored Nov 22, 2019
2 parents 7ca2386 + 2f25004 commit 61e164c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clang/include/indexstore/indexstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@

#define INDEXSTORE_OPTIONS_ATTRS INDEXSTORE_OPEN_ENUM_ATTR INDEXSTORE_FLAG_ENUM_ATTR

#if defined(__has_extension)
#if __has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum)
# define INDEXSTORE_OPTIONS(_type, _name) enum INDEXSTORE_OPTIONS_ATTRS _name : _type _name; enum INDEXSTORE_OPTIONS_ATTRS _name : _type
#else
#endif
#endif

#ifndef INDEXSTORE_OPTIONS
# define INDEXSTORE_OPTIONS(_type, _name) _type _name; enum INDEXSTORE_OPTIONS_ATTRS
#endif

Expand Down

0 comments on commit 61e164c

Please sign in to comment.