]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Disable __attribute__ for non gnu compiler
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 17 Mar 2010 12:53:12 +0000 (12:53 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 17 Mar 2010 12:53:12 +0000 (12:53 +0000)
include/conf.h
include/defs.h

index df6a91215831b18cb049bad80a9c7d7f5ccf0b08..683ee88caefe3558b77743631cad93403d907c2c 100755 (executable)
@@ -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
index b977a56bbbdf5c2ee132ceae11872a399a0a9931..ed95ca072dff62d94499cd3ad9fcdd3c0c0984a0 100755 (executable)
@@ -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);