Skip to content

Commit

Permalink
fix indexstore.h header for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp committed Nov 21, 2019
1 parent 89d1f14 commit 23391df
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 23391df

Please sign in to comment.