From 1331b6e9b8ac09124d724032bca7f547a7fbedeb Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sat, 23 Jun 2018 17:56:52 +0000 Subject: [PATCH] Do not depend on config.h in public headers config.h is not installed with libcpuid, and even if it were HAVE_CONFIG_H could not be used to check for its availability. --- libcpuid/libcpuid_types.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libcpuid/libcpuid_types.h b/libcpuid/libcpuid_types.h index 36886e0..0e667aa 100644 --- a/libcpuid/libcpuid_types.h +++ b/libcpuid/libcpuid_types.h @@ -32,19 +32,15 @@ #ifndef __LIBCPUID_TYPES_H__ #define __LIBCPUID_TYPES_H__ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#if defined(HAVE_STDINT_H) +#if !defined(_MSC_VER) || _MSC_VER >= 1600 # include #else /* we have to provide our own: */ -# if !defined(HAVE_INT32_T) && !defined(__int32_t_defined) +# if !defined(__int32_t_defined) typedef int int32_t; # endif -# if !defined(HAVE_UINT32_T) && !defined(__uint32_t_defined) +# if !defined(__uint32_t_defined) typedef unsigned uint32_t; # endif