mirror of
https://github.com/simh/simh.git
synced 2026-05-03 14:38:45 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user