Skip to content

Commit a2f0989

Browse files
committed
Merge branch 'develop-conda' into develop
2 parents 072cbea + 4b9216e commit a2f0989

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libcommon/minc_error.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#ifndef MINC_ERROR_H
3636
#define MINC_ERROR_H
3737

38+
39+
3840
/* minc1 message levels */
3941
#define MI_MSG_FATAL 0
4042
#define MI_MSG_ERROR 1
@@ -164,6 +166,11 @@ typedef enum mimsgcode {
164166
MI2_MSG_GENERIC
165167
} mimsgcode_t;
166168

169+
#ifdef __cplusplus
170+
extern "C" {
171+
#endif /* __cplusplus */
172+
173+
167174
void milog_init(const char *);
168175
int milog_set_verbosity(int);
169176

@@ -186,6 +193,10 @@ void MI_log_pkg_error2(int p1, char *p2);
186193
void MI_log_pkg_error3(int p1, char *p2, char *p3);
187194
void MI_log_sys_error1(char *p1);
188195

196+
#ifdef __cplusplus
197+
}
198+
#endif /* __cplusplus */
199+
189200

190201
#define MI_LOG_ERROR(code,...) mi2log_message(__FILE__, __LINE__, code, ##__VA_ARGS__ )
191202
#define MI_CHECK_HDF_CALL(var,call) {if((var)<0) MI_LOG_ERROR(MI2_MSG_HDF5,call);}

0 commit comments

Comments
 (0)