From: Frédéric Marchal Date: Wed, 17 Mar 2010 12:53:12 +0000 (+0000) Subject: Disable __attribute__ for non gnu compiler X-Git-Tag: v2.3-pre2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0126186044c86d5af11fdcd1c51d4055a5e97c6;p=thirdparty%2Fsarg.git Disable __attribute__ for non gnu compiler --- diff --git a/include/conf.h b/include/conf.h index df6a912..683ee88 100755 --- a/include/conf.h +++ b/include/conf.h @@ -159,6 +159,10 @@ int mkstemps(char *template, int suffixlen); #endif /*__MINGW32__*/ +#ifndef __GNUC__ +# define __attribute__(x) +#endif + #define MAXLEN 20000 #define MAX_URL_LEN 40000 #define MAX_TRUNCATED_URL 512 diff --git a/include/defs.h b/include/defs.h index b977a56..ed95ca0 100755 --- a/include/defs.h +++ b/include/defs.h @@ -222,7 +222,7 @@ void write_html_trailer(FILE *fp_ou); void output_html_string(FILE *fp_ou,const char *str,int maxlen); void output_html_url(FILE *fp_ou,const char *url); void conv_month(char *month); -void debuga(const char *msg,...); +void debuga(const char *msg,...) __attribute__((format(printf,1,2))); void debugaz(const char *head, const char *msg); void my_lltoa(unsigned long long int n, char *s, int ssize, int len); char *get_size(const char *path, const char *file);