Ignore:
Timestamp:
Oct 19, 2011, 10:35:15 PM (14 years ago)
Author:
dmik
Message:

GCC doesn't have _set_crt_msg_handle().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/dbglog.cpp

    r21717 r21722  
    257257static BOOL fLogging = TRUE;
    258258static int  dwEnableLogging = 1;
     259#ifdef __IBMC__
    259260static int  oldcrtmsghandle = 0;
     261#endif
    260262
    261263static BOOL fDisableThread[5] = {0};
    262264static BOOL fFlushLines = TRUE;
    263265
    264 static char *pszLastLogEntry = NULL;
     266static const char *pszLastLogEntry = NULL;
    265267
    266268//#define CHECK_ODINHEAP
     
    353355            flog = fopen(szLogFile, "w");
    354356        }
     357#ifdef __IBMC__
    355358        oldcrtmsghandle = _set_crt_msg_handle(fileno(flog));
     359#endif
    356360    }
    357361    else
     
    717721void CloseLogFile()
    718722{
     723#ifdef __IBMC__
    719724  if(oldcrtmsghandle)
    720725    _set_crt_msg_handle(oldcrtmsghandle);
     726#endif
    721727
    722728#ifdef WIN32_IP_LOGGING
Note: See TracChangeset for help on using the changeset viewer.