sim/common/Changelog:
2018-12-31 Pavel I. Kryukov <kryukov@frtk.ru>
* sim-base.h: Add 'extern C' if header is compiled with C++
+2019-01-03 Pavel I. Kryukov <kryukov@frtk.ru>
+
+ * sim-base.h: Add 'extern C' if header is compiled with C++.
+
2018-12-06 Andrew Burgess <andrew.burgess@embecosm.com>
* common/acinclude.m4 (enable-cgen-maint): Support passing path to
#ifndef SIM_BASE_H
#define SIM_BASE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Pre-declare certain types. */
/* typedef <target-dependant> sim_cia; */
SIM_DESC sim_state_alloc (SIM_OPEN_KIND kind, host_callback *callback);
void sim_state_free (SIM_DESC);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SIM_BASE_H */