Ignore:
Timestamp:
Nov 3, 2011, 5:46:14 PM (14 years ago)
Author:
dmik
Message:

Workaround stdcall bug in GCC related to vararg functions.

This can be easily removed once GCC gets fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/include/_ras.h

    r21755 r21787  
    4949
    5050/* Tracked objects logging functions typedefs */
    51 typedef void WIN32API FNRASLOG_EXTERNAL (const char *fmt, ...);
     51typedef void WIN32API_VA FNRASLOG_EXTERNAL (const char *fmt, ...);
    5252
    5353typedef ULONG WIN32API FNLOC (ULONG objident, ULONG objhandle, void *objdata, ULONG cbobjdata, FNRASLOG_EXTERNAL *pRasLog);
     
    150150
    151151/* RAS logging functions */
    152 void WIN32API RasLog (
     152void WIN32API_VA RasLog (
    153153                  const char *fmt,                 /* 'printf' style format string */
    154154                  ...
    155155              );
    156156
    157 void WIN32API RasLogNoEOL (
     157void WIN32API_VA RasLogNoEOL (
    158158                  const char *fmt,                 /* 'printf' style format string */
    159159                  ...
     
    173173              );
    174174
    175 void WIN32API RasLog2 (
     175void WIN32API_VA RasLog2 (
    176176                  RAS_LOG_CHANNEL_H hchannel,      /* log channel to log to */
    177177                  char *fmt,                       /* 'printf' style format string */
     
    179179              );
    180180
    181 void WIN32API RasLogNoEOL2 (
     181void WIN32API_VA RasLogNoEOL2 (
    182182                  RAS_LOG_CHANNEL_H hchannel,      /* log channel to log to */
    183183                  char *fmt,                       /* 'printf' style format string */
     
    194194/* RAS replacement for C runtime sprintf function */
    195195#ifdef __GNUC__
    196 int WIN32API ras_snprintf (
     196int WIN32API_VA ras_snprintf (
    197197#else
    198198int WIN32API snprintf (
     
    266266    void  (* WIN32API RasWriteLogChannel) (RAS_LOG_CHANNEL_H hchannel, const char *msg, ULONG length);
    267267    void  (* WIN32API RasCloseLogChannel) (RAS_LOG_CHANNEL_H hchannel);
    268     void  (* WIN32API RasLog) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);
    269     void  (* WIN32API RasLogNoEOL) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);
     268    void  (* WIN32API_VA RasLog) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);
     269    void  (* WIN32API_VA RasLogNoEOL) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);
    270270    void  (* WIN32API RasLogMsg) (RAS_LOG_CHANNEL_H hchannel, ULONG msg, ULONG parm1, ULONG parm2);
    271     int   (* WIN32API snprintf) (char *buf, int n, const char *fmt, ...);
     271    int   (* WIN32API_VA snprintf) (char *buf, int n, const char *fmt, ...);
    272272    void  (* WIN32API RasSaveContext) (RASCONTEXT *pcontext);
    273273    void  (* WIN32API RasRestoreContext) (RASCONTEXT *pcontext);
Note: See TracChangeset for help on using the changeset viewer.