H316: Avoid name space collision for the global variable PC

When dynamic loading readline, it intenally defines/references a variable
named PC which collides with a simulator defined global variable and
readline doesn;'t work for SCP ommand recall and possibly interferes with
simulator operation.
This commit is contained in:
Mark Pizzolato 2018-12-31 09:56:10 -08:00
parent 9f2d96b3e7
commit b437bfc280

View file

@ -224,4 +224,8 @@ t_stat io_set_dma (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
t_stat io_set_dmc (UNIT *uptr, int32 val, CONST char *cptr, void *desc); t_stat io_set_dmc (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
t_stat io_show_chan (FILE *st, UNIT *uptr, int32 val, CONST void *desc); t_stat io_show_chan (FILE *st, UNIT *uptr, int32 val, CONST void *desc);
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
#define PC PC_Global
#endif #endif