mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1238 from mmicko/vsbuild_fix
Visual Studio build fix
This commit is contained in:
commit
0917a5cf72
|
@ -53,7 +53,7 @@ PRIVATE_NAMESPACE_BEGIN
|
||||||
|
|
||||||
inline int32_t to_big_endian(int32_t i32) {
|
inline int32_t to_big_endian(int32_t i32) {
|
||||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
return __builtin_bswap32(i32);
|
return bswap32(i32);
|
||||||
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||||
return i32;
|
return i32;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <cctype>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
|
Loading…
Reference in New Issue