ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/debug.h
(Generate patch)

Comparing BasiliskII/src/include/debug.h (file contents):
Revision 1.1.1.1 by cebix, 1999-10-03T14:16:26Z vs.
Revision 1.10 by gbeauche, 2008-01-01T09:40:35Z

# Line 1 | Line 1
1   /*
2   *  debug.h - Debugging utilities
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2008 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 21 | Line 21
21   #ifndef DEBUG_H
22   #define DEBUG_H
23  
24 < #if defined(WIN32)
24 > #if defined(WIN32) && !defined(__CYGWIN__)
25  
26   // Windows debugging goes where it's supposed to go
27   #include <stdio.h>
# Line 30 | Line 30
30   #include <sys/types.h>
31   #include <sys/timeb.h>
32  
33 < static void inline _cdecl winbug( char *s, ...)
33 > static void _cdecl inline winbug( char *s, ...)
34   {
35 <  va_list vargs;
35 >        va_list vargs;
36          char msg[1024], date[50], hours[50];
37 <  struct _timeb tstruct;
37 >        struct _timeb tstruct;
38  
39          _ftime( &tstruct );
40          _strtime( hours );
41          _strdate( date );
42 <        wsprintf( msg, "B2: %s %s:%03u ", date, hours, tstruct.millitm );
42 >        sprintf( msg, "B2: %s %s:%03u ", date, hours, tstruct.millitm );
43          
44          va_start( vargs, s );
45 <        wvsprintf( &msg[strlen(msg)], s, vargs );
45 >        vsprintf( &msg[strlen(msg)], s, vargs );
46          va_end( vargs );
47  
48          OutputDebugString(msg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines