Visual Studio build fix
authorMiodrag Milanovic <mmicko@gmail.com>
Wed, 31 Jul 2019 07:10:24 +0000 (09:10 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Wed, 31 Jul 2019 07:10:24 +0000 (09:10 +0200)
backends/aiger/xaiger.cc
passes/techmap/abc.cc

index 69f63486c8605a39c0b971c7e5cf7f7d368487b4..6aa9cde5483773b1f135ef1fb3b4659a293bdb74 100644 (file)
@@ -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
index 65c7d1bb82ffc4d44171efead21fd4c62cfa7f59..19afb58cbcf83c1a011832d37e0e54914d662853 100644 (file)
@@ -49,6 +49,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <cctype>
 #include <cerrno>
 #include <sstream>
 #include <climits>