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:
parent
b206c16347
commit
ed263d26cc
3 changed files with 7 additions and 20 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue