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:
parent
9f2d96b3e7
commit
b437bfc280
1 changed files with 4 additions and 0 deletions
|
@ -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_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
|
||||
|
|
Loading…
Add table
Reference in a new issue