Skip to content

Commit 7cd37f6

Browse files
Richard CopleyRichard Copley
authored andcommitted
Only forward declare '_mm_pause' if it is used
1 parent e9a9e83 commit 7cd37f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/stdexec/stop_token.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
# include <stop_token> // IWYU pragma: export
3030
#endif
3131

32+
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
3233
extern void _mm_pause();
34+
#endif
3335

3436
namespace STDEXEC::__stok
3537
{

0 commit comments

Comments
 (0)