[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] syntax error in header file: keyword used as a struct field
From: |
Werner LEMBERG |
Subject: |
Re: [ft] syntax error in header file: keyword used as a struct field |
Date: |
Sun, 06 Jul 2008 18:51:23 +0200 (CEST) |
> I have been unable to successfully compile a file that includes
> freetype.h because that file uses both 'generic' and 'internal' to
> name two fields of a struct. I find it odd that this problem is not
> showing up for many other people. I found only two posts on the web
> complaining about the same thing. One suggested solution is to use
> '#define ' to change the generic keyword, before including the
> header file, and then using 'undef' immediately after. But I'm
> worried that might cause problems to show up later.
Both the keywords `generic' and `internal' are *not* standard but
probably a MS extension (or whatever). The solution you are giving is
the right one IMHO.
Werner