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.
pull/3/head
whitequark 2015-03-29 03:24:35 +03:00
parent 5894efcfe5
commit 55e2d6b06d
1 changed files with 4 additions and 2 deletions

View File

@ -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 <stdint.h>
#endif
typedef uint32_t Slvs_hParam;