Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corec: assume stdint.h is always available #162

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading