"Michael Sgier" <sg***@nospam.ch> wrote in message
news:43**********************@news.sunrise.ch...
Hello
I get the error below. But why and what does ifndef? Well what
is ifndef?
Many thanks and regards
Michael
error: syntax error before `(' token
#ifndef MD2SwapInt
static __inline__ Uint32 MD2SwapInt(Uint32 D) {
return((D<<24)|((D<<8)&0x00FF0000)|((D>>8)&0x0000F F00)|(D>>24));
}
#endif
I don't know why you get the syntax error. I would suggest looking for a
missing a ; or a close parenthisis or some such from a previously included
header.
as for what is ifndef:
#ifndef is a directive that tell is the compiler "if MD2SwapInt is not
defned, then include the following code:" (if not defined).
Since you are getting an error from your code, MD2SwapInt has clearly not
been defined.