mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Visual Studio build fix
This commit is contained in:
parent
b4f38cca77
commit
35d28de478
2 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
inline int32_t to_big_endian(int32_t i32) {
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
return __builtin_bswap32(i32);
|
||||
return bswap32(i32);
|
||||
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
return i32;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue