1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +00:00

VMS Build: Restore VAX/VMS host build support

The C RTL on the latest VAX/VMS does not provide a snprintf function.
We provide a 'basic' one which meets the needs of simh as suggested
by Jordi Guillaumes Pons.
This commit is contained in:
Mark Pizzolato
2017-12-09 11:21:38 -08:00
parent 9b1f44f787
commit 6487d319cd
3 changed files with 22 additions and 1 deletions

View File

@@ -115,6 +115,10 @@
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#define snprintf _snprintf /* poor man's snprintf which will work most of the time but has different return value */
#endif
#if defined(__VAX)
extern int sim_vax_snprintf(char *buf, size_t buf_size, const char *fmt, ...);
#define snprintf sim_vax_snprintf
#endif
#include <stdarg.h>
#include <string.h>
#include <errno.h>