Ignore:
Timestamp:
Oct 14, 2008, 5:57:44 PM (14 years ago)
Author:
charles
Message:

(libT) a few more win32 portability changes from Spry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r6897 r6903  
    190190{
    191191    FILE * fp = tr_getLog( );
    192 
     192#ifdef WIN32
     193    if( fp || IsDebuggerPresent( ) )
     194#else
    193195    if( fp )
     196#endif
    194197    {
    195198        va_list           args;
     
    206209        va_end( args );
    207210        evbuffer_add_printf( buf, " (%s:%d)\n", base, line );
     211#ifdef WIN32
     212        OutputDebugString( EVBUFFER_DATA( buf );
     213        if(fp)
     214#endif
    208215        (void) fwrite( EVBUFFER_DATA( buf ), 1, EVBUFFER_LENGTH( buf ), fp );
    209216
Note: See TracChangeset for help on using the changeset viewer.