mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 04:28:36 -04:00
fortran_charlen_t should be size_t, not int, with Clang on MacOS.
This commit is contained in:
parent
5c2d01d8b4
commit
e027c9ea3c
@ -59,14 +59,19 @@ extern "C" {
|
||||
|
||||
/* typedef for consistent gfortran ABI for charlen type hidden arguments */
|
||||
#if __GNUC__ > 7
|
||||
#ifdef __cplusplus
|
||||
#include <cstddef>
|
||||
#ifdef __cplusplus
|
||||
#include <cstddef>
|
||||
#else
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
typedef size_t fortran_charlen_t;
|
||||
#else
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
typedef size_t fortran_charlen_t;
|
||||
#else
|
||||
typedef int fortran_charlen_t;
|
||||
#if defined(__clang__)
|
||||
#include <stddef.h>
|
||||
typedef size_t fortran_charlen_t;
|
||||
#else
|
||||
typedef int fortran_charlen_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user