Skip to content

Commit

Permalink
Defend against Qt macros when using Intel C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Jul 31, 2022
1 parent d3b79bf commit 656cc92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asio/include/asio/detail/pop_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
# endif // !defined(ASIO_DISABLE_VISIBILITY)
# endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)

# pragma pop_macro ("emit")
# pragma pop_macro ("signal")
# pragma pop_macro ("slot")

#elif defined(__clang__)

// Clang
Expand Down
9 changes: 9 additions & 0 deletions asio/include/asio/detail/push_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
# endif // !defined(ASIO_DISABLE_VISIBILITY)
# endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)

# pragma push_macro ("emit")
# undef emit

# pragma push_macro ("signal")
# undef signal

# pragma push_macro ("slot")
# undef slot

#elif defined(__clang__)

// Clang
Expand Down

0 comments on commit 656cc92

Please sign in to comment.