3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-02 23:28:00 +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 f284ec9382
commit 0cedcef6a1
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 */