> I've been working with the InspIRCd group to try to get it working on
> OpenBSD again.  The server I'm doing this on is OpenBSD 4.2 on an
> Alphaserver 1000 4/200.
> 
> There is a header which has the following section:
> 
> #ifdef __GNUC__
> #define CUSTOM_PRINTF(STRING, FIRST) __attribute__((format(printf, STRING,
> FIRST)))
> #else
> #define CUSTOM_PRINTF(STRING, FIRST)
> #endif

[...]

> Line 197 is the line that calls CUSTOM_PRINTF.  If the CUSTOM_PRINTF portion
> is removed, the module compiles.
> Is there a different format expected for __attribute__ that should be looked
> at?

Have you tried writing it as

#define CUSTOM_PRINTF(STRING, FIRST) \
        __attribute__((__format__(__printf__, STRING, FIRST)))

i.e. prepending and appending two underscores to both the ``format'' and
``printf'' keywords?

Miod

Reply via email to