This code should now build the x86_x64-softmmu part 2.

This commit is contained in:
xorstream
2017-01-19 22:50:28 +11:00
parent 37f9a248ea
commit 1aeaf5c40d
174 changed files with 2418 additions and 1414 deletions

View File

@ -11,6 +11,8 @@
*/
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
static const char *progname;
@ -42,6 +44,14 @@ static void error_print_loc(void)
* Prepend the current location and append a newline.
* It's wrong to call this in a QMP monitor. Use qerror_report() there.
*/
#ifdef _MSC_VER
void error_vreport(const char *fmt, va_list ap)
{
error_print_loc();
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
}
#else
void error_vreport(const char *fmt, va_list ap)
{
GTimeVal tv;
@ -51,6 +61,7 @@ void error_vreport(const char *fmt, va_list ap)
error_vprintf(fmt, ap);
error_printf("\n");
}
#endif
/*
* Print an error message to current monitor if we have one, else to stderr.