#ifdef __GNUC__
typedef char * _PDCLIB_va_list;
- #define _PDCLIB_va_arg( ap, type ) __builtin_va_arg( ap, type )
- #define _PDCLIB_va_copy( dest, src ) __builtin_va_copy( dest, src)
- #define _PDCLIB_va_end( ap ) __builtin_va_end( ap )
- #define _PDCLIB_va_start( ap, parmN ) __builtin_va_start( ap, parmN )
+ #define _PDCLIB_va_arg( ap, type ) (__builtin_va_arg( (ap), type ))
+ #define _PDCLIB_va_copy( dest, src ) (__builtin_va_copy( (dest), (src) ))
+ #define _PDCLIB_va_end( ap ) (__builtin_va_end( ap ) )
+ #define _PDCLIB_va_start( ap, parmN ) (__builtin_va_start( (ap), (parmN) ))
#else
#error Compiler support please
#endif
/* The values of SEEK_SET, SEEK_CUR and SEEK_END, used by fseek().
Since at least one platform (POSIX) uses the same symbols for its own "seek"
function, we use whatever the host defines (if it does define them).
+
+ Win32 note: Must match Win32 API values (FILE_BEGIN/FILE_CURRENT/FILE_END)
*/
#define _PDCLIB_SEEK_SET 0
#define _PDCLIB_SEEK_CUR 1