Skip to content

Commit

Permalink
corec: assume stdint.h is always available
Browse files Browse the repository at this point in the history
It's a C99 header that should also be found in MSVC.
  • Loading branch information
robUx4 committed Dec 27, 2024
1 parent 2b0dd72 commit 592456f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
2 changes: 0 additions & 2 deletions corec/corec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ else(${CONFIG_UNICODE} STREQUAL "best")
set(CONFIG_UNICODE_MODE CONFIG_UNICODE_BEST)
endif()

check_include_file(stdint.h HAVE_STDINT_H)

# Base core API
add_library("corec_bare" INTERFACE)
set(corec_base_PUBLIC_HEADERS
Expand Down
2 changes: 0 additions & 2 deletions corec/corec/corec_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#define @CONFIG_UNICODE_MODE@

#cmakedefine HAVE_STDINT_H

#include "corec/confhelper.h"

#define COREC_PROJECT_VERSION T("@corec_VERSION_MAJOR@.@corec_VERSION_MINOR@.@corec_VERSION_PATCH@")
Expand Down
39 changes: 0 additions & 39 deletions corec/corec/portab.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,46 +293,7 @@ typedef uint64_t uint_fast64_t;

#include "corec_config.h"

#if defined(HAVE_STDINT_H)
#include <stdint.h>
#elif !defined(_STDINT_H) && !defined(_STDINT_H_) && !defined(_UINT64_T_DECLARED) // could be used elsewhere

typedef signed long int32_t;
typedef unsigned long uint32_t;
typedef signed short int16_t;
typedef unsigned short uint16_t;
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;

#if defined(IX86_64) || defined(IA64)
typedef signed __int64 int_fast32_t;
typedef unsigned __int64 uint_fast32_t;
typedef signed __int64 int_fast16_t;
typedef unsigned __int64 uint_fast16_t;
typedef signed char int_fast8_t;
typedef unsigned char uint_fast8_t;
typedef signed __int64 int_fast64_t;
typedef unsigned __int64 uint_fast64_t;
#else /* !IX86_64 && !IA64 */
#if _MSC_VER >= 1400
typedef __w64 signed int int_fast32_t;
typedef __w64 unsigned int uint_fast32_t;
typedef __w64 signed int int_fast16_t;
typedef __w64 unsigned int uint_fast16_t;
#else
typedef signed int int_fast32_t;
typedef unsigned int uint_fast32_t;
typedef signed int int_fast16_t;
typedef unsigned int uint_fast16_t;
#endif
typedef signed char int_fast8_t;
typedef unsigned char uint_fast8_t;
typedef signed __int64 int_fast64_t;
typedef unsigned __int64 uint_fast64_t;
#endif /* !IX86_64 && !IA64 */
#endif /* _STDINT_H | _STDINT_H_ | _UINT64_T_DECLARED */

#ifdef _MSC_VER
#define LL(x) x##i64
Expand Down

0 comments on commit 592456f

Please sign in to comment.