From 04459541211a5d7a03cf59c166046a163b7509ed Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 4 Feb 2010 13:54:44 +0000 Subject: Only add format-printf attribute on GCC >= 2. svn path=/branches/BRANCH_6-3/; revision=5476 --- socket.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/socket.h b/socket.h index 424ca209..a32a3422 100644 --- a/socket.h +++ b/socket.h @@ -46,6 +46,11 @@ Returns number of bytes successfully written. */ int SockWrite(int sock, char *buf, int size); +/* from /usr/include/sys/cdefs.h */ +#if !defined __GNUC__ || __GNUC__ < 2 +# define __attribute__(xyz) /* Ignore. */ +#endif + /* Send formatted output to the socket (matches interface of fprintf). Returns number of bytes successfully written. -- cgit v1.2.3