summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-22 02:51:26 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-22 03:04:41 +0000
commit81febe5d69ddd98f23ec645465500effdcddd1ae (patch)
tree92ee790952e2a4072c7ea4915c65f4126c9b20d4
parentef2d917562dadb7efc0780aa717ffe0474a4134f (diff)
downloadabc-81febe5d69ddd98f23ec645465500effdcddd1ae.tar.gz
abc-81febe5d69ddd98f23ec645465500effdcddd1ae.tar.bz2
abc-81febe5d69ddd98f23ec645465500effdcddd1ae.zip
Add WASI platform support to glucose.
-rw-r--r--src/sat/glucose/IntTypes.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/sat/glucose/IntTypes.h b/src/sat/glucose/IntTypes.h
index 3f75862b..5c4176b2 100644
--- a/src/sat/glucose/IntTypes.h
+++ b/src/sat/glucose/IntTypes.h
@@ -28,20 +28,18 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
# include <sys/int_fmtio.h>
# include <sys/int_limits.h>
-#else
+#elif _WIN32
-#define __STDC_LIMIT_MACROS
# include "pstdint.h"
-//# include <inttypes.h>
-#endif
+#else
-#include <limits.h>
+# define __STDC_LIMIT_MACROS
+# include <limits.h>
+# include <inttypes.h>
-#ifndef PRIu64
-#define PRIu64 "lu"
-#define PRIi64 "ld"
#endif
+
//=================================================================================================
#include <misc/util/abc_namespaces.h>