stdio.h syntax related error?

When including stdio.h and building my program, I receive the following error:
/usr/include/stdio.h|30|error: expected identifier or ‘(’ before string constant|


In this slice of code from stdio.h:
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _STDIO_H

#if !defined __need_FILE && !defined __need___FILE
# define _STDIO_H	1
# include <features.h>

__BEGIN_DECLS  //This bit here causes error

# define __need_size_t
# define __need_NULL
# include <stddef.h>
...


I'm not sure if there is a syntax error in this code, something I need to define __BEGIN_DECLS as or atleast nullify it. I can't seem to find anyone with this kind of issue using stdio.h, I also tried to chmod it so I'd be able to modify it, didn't allow me to. ;D

Is anybody familiar with __BEGIN_DECLS or know how to muffle an undefined identifier.. or is it a macro?

Kris.
Which compiler are you using?
How are you compiling?
Tried GCC-4.5 and GCC-4.6, using Codeblocks. =\
Are your compiler settings correct?
Which project type did you start from?
Are you defining anything before the inclusion?
Do you have enabled/disabled any compiler option?
Works in other os's, including Fedora, but not openSUSE, it's compiled correctly, not defined anything extra, nothing is disabled or enabled in compiler flags.
Does it work if you compile from command line?
Nope. =/
Try to reinstall the compiler.
Can I see the command line you used?
Instead I took out the include (Minini) which caused this error in Windows, I can only presume there was something defined in one of the glue headers which caused stdio.h to throw a compiler error.
Topic archived. No new replies allowed.