Mail Archives: djgpp-workers/2002/05/28/07:01:07
All,
Below is a patch that I've used in order to build DJGPP CVS LIBEMU.A with
gcc 3.1. Any problems with this?
Andrew
--- src\libemu\src\emu387.cc 2002-05-28 19:32:40.000000000 +1000
+++ src\libemu\src\orig\emu387.cc 2002-05-28 19:45:28.000000000 +1000
@@ -1,10 +1,8 @@
-/* Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
@@ -143,12 +141,9 @@ static inline int is_zero(reg a)
#ifndef eprintf
static void eprintf(const char *f, ...)
{
- va_list args;
char buf[1000];
- va_start(args, f);
- vsprintf(buf, f, args);
+ vsprintf(buf, f, (char *)(&f)+1);
_write(1, buf, strlen(buf));
- va_end(args);
}
#endif
- Raw text -