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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user