I have the following code which is trying to accept va_list as an argument:
foo.c:
Code: Select all
#include "foo.h"
void foo(va_list arg)
{
// .. stuff here
}
Code: Select all
#include <stdarg.h>
void foo(va_list arg);
When I declare the function prototype in the c file, it compiles fine. The error only occurs when I add the function prototype to the header file. Am I missing something really obvious here? Or perhaps a bug? Thanks in advanced.foo.h:##:##: error: parse error before "va_list"