Changeset 21719 for branches/gcc-kmk/src


Ignore:
Timestamp:
Oct 19, 2011, 10:20:51 AM (14 years ago)
Author:
dmik
Message:

_ras.cpp: Port to GCC.

File:
1 edited

Legend:

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

    r21717 r21719  
    1010#include <custombuild.h>
    1111#include <odincrt.h>
     12#ifdef __GNUC__
     13#include <float.h>
     14#else
    1215#include <libc/float.h>
     16#endif
    1317
    1418#include "initterm.h"
     
    421425}
    422426
     427#ifndef __GNUC__
     428
    423429int vsnprintf (char *buf, int n, const char *fmt, va_list args)
    424430{
     
    622628}
    623629
     630#endif // ifndef __GNUC__
     631
    624632int WIN32API rasOpenLogFile (ULONG *ph, const char *logfilename)
    625633{
     
    10761084ULONG rasGenObjIdent (void)
    10771085{
    1078     static objident = 0;
     1086    static ULONG objident = 0;
    10791087
    10801088    objident++;
     
    15061514   if (rascfg.fRasBreakPoint)
    15071515   {
     1516#ifdef __GNUC__
     1517       __asm__ __volatile__ ("int3\n\tnop");
     1518#else
    15081519       _interrupt(3);
     1520#endif
    15091521   }
    15101522
Note: See TracChangeset for help on using the changeset viewer.