1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-26 16:55:45 +00:00

Merge pull request #114 from orivej/stdint

Do not depend on config.h in public headers
This commit is contained in:
Veselin Georgiev 2018-06-25 10:12:54 +03:00 committed by GitHub
commit aae06ecb7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,19 +32,15 @@
#ifndef __LIBCPUID_TYPES_H__ #ifndef __LIBCPUID_TYPES_H__
#define __LIBCPUID_TYPES_H__ #define __LIBCPUID_TYPES_H__
#ifdef HAVE_CONFIG_H #if !defined(_MSC_VER) || _MSC_VER >= 1600
# include "config.h"
#endif
#if defined(HAVE_STDINT_H)
# include <stdint.h> # include <stdint.h>
#else #else
/* we have to provide our own: */ /* we have to provide our own: */
# if !defined(HAVE_INT32_T) && !defined(__int32_t_defined) # if !defined(__int32_t_defined)
typedef int int32_t; typedef int int32_t;
# endif # endif
# if !defined(HAVE_UINT32_T) && !defined(__uint32_t_defined) # if !defined(__uint32_t_defined)
typedef unsigned uint32_t; typedef unsigned uint32_t;
# endif # endif