fortran_charlen_t should be size_t, not int, with Clang on MacOS.

This commit is contained in:
Steven Franke 2024-09-17 16:00:13 -05:00
parent 5c2d01d8b4
commit e027c9ea3c

View File

@ -65,9 +65,14 @@ extern "C" {
#include <stddef.h>
#endif
typedef size_t fortran_charlen_t;
#else
#if defined(__clang__)
#include <stddef.h>
typedef size_t fortran_charlen_t;
#else
typedef int fortran_charlen_t;
#endif
#endif
#ifdef __cplusplus
}