Mail Archives: djgpp-workers/2000/07/20/15:04:02
Seems like we're possibly going to convert to GCC's <stdarg.h>
So I'm goint to post a patch witch reverts my changes to <*arg.h>
headers. Just two notes:
1) I want to put in our headers something like
#if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) || (__GNUC__ >= 3)
#error Error in DJGPP installation - GCC headers not properly installed
#endif
Is it OK?
2) Our little ISO incompatibility:
If Those Who Matter (tm) do not change their minds about stdio.h using va_list,
I'll do it as follows:
#define __need___va_list
#include <stdarg.h>
#ifndef _VA_LIST_
typedef __gnuc_va_list va_list
#define _VA_LIST
#endif
Like with <stddef.h>, __need___va_list is a backdoor to get
actual definition from header file, but due to ISO its returned
type will be called __gnuc_va_list instead of va_list.
OK to go on?
Laurynas
- Raw text -