mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 15:18:34 +08:00
Add 'extern C' if simulator is written in C++
sim/common/Changelog: 2018-12-31 Pavel I. Kryukov <kryukov@frtk.ru> * sim-base.h: Add 'extern C' if header is compiled with C++
This commit is contained in:

committed by
Simon Marchi

parent
69961a84c9
commit
444b3faef5
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2018-12-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* common/acinclude.m4 (enable-cgen-maint): Support passing path to
|
* common/acinclude.m4 (enable-cgen-maint): Support passing path to
|
||||||
|
@ -55,6 +55,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#ifndef SIM_BASE_H
|
#ifndef SIM_BASE_H
|
||||||
#define SIM_BASE_H
|
#define SIM_BASE_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Pre-declare certain types. */
|
/* Pre-declare certain types. */
|
||||||
|
|
||||||
/* typedef <target-dependant> sim_cia; */
|
/* typedef <target-dependant> sim_cia; */
|
||||||
@ -224,4 +228,8 @@ typedef struct {
|
|||||||
SIM_DESC sim_state_alloc (SIM_OPEN_KIND kind, host_callback *callback);
|
SIM_DESC sim_state_alloc (SIM_OPEN_KIND kind, host_callback *callback);
|
||||||
void sim_state_free (SIM_DESC);
|
void sim_state_free (SIM_DESC);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* SIM_BASE_H */
|
#endif /* SIM_BASE_H */
|
||||||
|
Reference in New Issue
Block a user