Date: Fri, 1 Sep 2000 08:00:44 +0200 (MET DST) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: __attribute__ for pointers Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com I'm having trouble with declaring a function-pointer with an '__attribute__'. This is what I have: extern int (*__printf) (const char *fmt, ...) #ifdef __GNUC__ __attribute__((format(printf,1,2))) #endif ; Where '__printf' points to either a stdio or a conio-type function. But gcc 2.95.2 doesn't seem to allow such '__attribute__' for a pointer; "argument format specified for non-function `__printf'" Any idea how this can be fixed? Gisle V.