Skip to content
Open
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
14 changes: 12 additions & 2 deletions flang/module/iso_c_binding.f90
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ module iso_c_binding
integer, parameter, public :: &
c_int = c_int32_t, &
c_short = c_int16_t, &
#if defined(_WIN32)
c_long = c_int32_t, &
#else
c_long = c_int64_t, &
#endif
c_long_long = c_int64_t, &
c_signed_char = c_int8_t, &
c_size_t = kind(c_sizeof(1)), &
Expand Down Expand Up @@ -76,6 +80,8 @@ module iso_c_binding
c_double = 8, &
#if __x86_64__
c_long_double = 10
#elif defined(_WIN32) && defined(__aarch64__)
c_long_double = 8
#else
c_long_double = 16
#endif
Expand Down Expand Up @@ -117,9 +123,13 @@ module iso_c_binding
c_unsigned_char = c_uint8_t, &
c_unsigned_short = c_uint16_t, &
c_unsigned = c_uint32_t, &
#if defined(_WIN32)
c_unsigned_long = c_uint32_t, &
#else
c_unsigned_long = c_uint64_t, &
c_unsigned_long_long = c_unsigned_long, &
#if __powerpc__
#endif
c_unsigned_long_long = c_uint64_t, &
#if __powerpc__ || defined(_WIN32)
c_uintmax_t = c_uint64_t
#else
c_uintmax_t = c_uint128_t
Expand Down