diff options
| author | Christoph Berg <myon@debian.org> | 2024-09-30 22:36:11 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2024-09-30 22:36:11 +0200 |
| commit | 4320ce238aae1fe87fc9f379cdd816e9317885fa (patch) | |
| tree | b9d97364486fc8b7f79e8e877d5d491bb061740f /wsjtx_config.h.in | |
| parent | fbaeaa72f63f22bf0b53d634f6809cbdfbb46c9f (diff) | |
New upstream version 2.7.0~rc7+repackupstream/2.7.0_rc7+repack
Diffstat (limited to 'wsjtx_config.h.in')
| -rwxr-xr-x | wsjtx_config.h.in | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/wsjtx_config.h.in b/wsjtx_config.h.in index 8ea7d5f4..c1880793 100755 --- a/wsjtx_config.h.in +++ b/wsjtx_config.h.in @@ -59,14 +59,19 @@ extern "C" { /* typedef for consistent gfortran ABI for charlen type hidden arguments */
#if __GNUC__ > 7
-#ifdef __cplusplus
-#include <cstddef>
-#else
-#include <stddef.h>
-#endif
- typedef size_t fortran_charlen_t;
+ #ifdef __cplusplus
+ #include <cstddef>
+ #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
|
