mirror of
https://github.com/simh/simh.git
synced 2026-04-16 00:21:35 +00:00
SCP: Avoid building sim_video code when it isn't used by a simulator.
This results in smaller simulator binaries.
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
#ifndef _SIM_VIDEO_H_
|
||||
#define _SIM_VIDEO_H_ 0
|
||||
|
||||
#if !defined(USE_SIM_VIDEO)
|
||||
#error This simulator MUST be compiled with USE_SIM_VIDEO defined
|
||||
#else
|
||||
|
||||
#include "sim_defs.h"
|
||||
|
||||
#define SIM_KEYPRESS_DOWN 0 /* key states */
|
||||
@@ -191,4 +195,6 @@ extern t_bool vid_mouse_b3; /* mouse button 3 state
|
||||
#define SIM_VID_DBG_KEY 0x02000000
|
||||
#define SIM_VID_DBG_VIDEO 0x04000000
|
||||
|
||||
#endif /* USE_SIM_VIDEO */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user