summaryrefslogtreecommitdiff
path: root/commons.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
committerChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
commit32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (patch)
treec6e107c1ee4d70610e43a7912e57c720334a08c7 /commons.h
parent08299e8b2bf50ba90daf570f57def529dd29d6e7 (diff)
New upstream version 2.2.0~rc1+repackupstream/2.2.0_rc1+repack
Diffstat (limited to 'commons.h')
-rw-r--r--commons.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/commons.h b/commons.h
index 4083bb22..24441ea0 100644
--- a/commons.h
+++ b/commons.h
@@ -7,9 +7,7 @@
#ifdef __cplusplus
#include <cstdbool>
-extern "C" {
-#endif
-#ifndef __cplusplus
+#else
#include <stdbool.h>
#endif
@@ -17,7 +15,8 @@ extern "C" {
* This structure is shared with Fortran code, it MUST be kept in
* sync with lib/jt9com.f90
*/
-extern struct dec_data {
+typedef struct dec_data {
+ int ipc[3];
float ss[184*NSMAX];
float savg[NSMAX];
float sred[5760];
@@ -66,7 +65,11 @@ extern struct dec_data {
char hiscall[12];
char hisgrid[6];
} params;
-} dec_data;
+} dec_data_t;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
extern struct {
float syellow[NSMAX];