From f0126186044c86d5af11fdcd1c51d4055a5e97c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Wed, 17 Mar 2010 12:53:12 +0000 Subject: [PATCH] Disable __attribute__ for non gnu compiler --- include/conf.h | 4 ++++ include/defs.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); -- 2.47.2