1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-05 07:33:56 +00:00

Avoid name space collision for the global variables PC, SP and BC when readline is dynamically loaded.

This commit is contained in:
Peter Kooiman
2025-04-05 17:10:49 +02:00
parent b036821a68
commit 2e0d51e9e9
7 changed files with 24 additions and 1 deletions

View File

@@ -27,9 +27,10 @@ Copyright (c) 2005-2012, William Beech
#include <ctype.h>
#include "sim_defs.h" // simulator defs
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
/* Rename of global PC and SP variables to avoid namespace conflicts on some platforms */
#define PC PC_Global
#define SP SP_Global
//#define DONT_USE_INTERNAL_ROM 1