1
0
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:
Mark Pizzolato
2014-09-16 11:05:31 -07:00
parent bc3582c194
commit 1e0b83ca10
3 changed files with 12 additions and 0 deletions

View File

@@ -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