3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-30 13:56:33 +00:00

Fix Windows portability issues that break MSVC build.

This commit is contained in:
Catherine 2026-05-23 03:58:12 +00:00
parent b206c16347
commit ed263d26cc
3 changed files with 7 additions and 20 deletions

View file

@ -48,6 +48,7 @@ typedef ULONG ULONG_PTR;
#ifdef _MSC_VER
/* https://docs.microsoft.com/en-us/cpp/intrinsics/returnaddress */
extern "C" void * _ReturnAddress(void);
#pragma intrinsic( _ReturnAddress )
#else
/* https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html */