From 55e2d6b06d3959046e806b3624242bc049c16a6b Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 29 Mar 2015 03:24:35 +0300 Subject: [PATCH] Fix stdint.h dependency in slvs.h. Since SolveSpace's config.h is not exported, we cannot depend on HAVE_C99_INTEGER_TYPES or similar variables. It's simplest to just define it from scratch in the same way as MSVC does. --- include/slvs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/slvs.h b/include/slvs.h index f1ddbdf9..0e54e376 100644 --- a/include/slvs.h +++ b/include/slvs.h @@ -24,8 +24,10 @@ extern "C" { #endif -#if defined(WIN32) && !defined(HAVE_C99_INTEGER_TYPES) -typedef UINT32 uint32_t; +#ifdef _MSC_VER +typedef unsigned __int32 uint32_t; +#else +#include #endif typedef uint32_t Slvs_hParam;