From b437bfc28036c68b5a0a0e7d4630fe58d8c9dc21 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 31 Dec 2018 09:56:10 -0800 Subject: [PATCH] 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. --- H316/h316_defs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/H316/h316_defs.h b/H316/h316_defs.h index 7a24c4e7..b64143ea 100644 --- a/H316/h316_defs.h +++ b/H316/h316_defs.h @@ -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