SBSPSS/source/system/vsprintf.h

15 lines
484 B
C
Raw Normal View History

2000-09-12 00:23:23 +02:00
#ifndef __SYSTEM_VSPRINTF_H__
#define __SYSTEM_VSPRINTF_H__
2000-09-12 01:41:29 +02:00
// stdarg defs from MSVC
#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )
#define __va_start(ap,v) ( ap = (__va_list)&v + _INTSIZEOF(v) )
#define __va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
#define __va_end(ap) ( ap = (__va_list)0 )
typedef char *__va_list;
extern int __vsprintf(char *buf, const char *fmt, __va_list args);
2000-09-12 00:23:23 +02:00
#endif /* __SYSTEM_VSPRINTF_H__ */