Skip to content

Commit

Permalink
Fix mingw build (broke by prev. commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 5, 2023
1 parent d6de3e2 commit d3bc39b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generic/tclBasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* compatible with AddressSanitizer (ASan) use-after-return detection.
*/

#if defined(HAVE_INTRIN_H)
#if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
#include <intrin.h> /* for _AddressOfReturnAddress() */
#endif

Expand All @@ -44,10 +44,10 @@
void *
TclGetCStackPtr(void)
{
#if defined(HAVE_INTRIN_H)
return _AddressOfReturnAddress();
#elif __GNUC__ || __has_builtin(__builtin_frame_address)
#if __GNUC__ || __has_builtin(__builtin_frame_address)
return __builtin_frame_address(0);
#elif defined(_MSC_VER) && defined(HAVE_INTRIN_H)
return _AddressOfReturnAddress();
#else
size_t unused = 0;
/*
Expand Down

0 comments on commit d3bc39b

Please sign in to comment.