]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Suppress warning when compiling with mingw
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 13 May 2013 08:31:13 +0000 (10:31 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 13 May 2013 08:31:13 +0000 (10:31 +0200)
Mingw doesn't accept the __attribute__ option. It is removed when
compiling with that compiler.

include/defs.h

index 6a14051619e9eb464070f4bdbb267bb451542395..775f49969566b420e68280fc14a4da8aae934193 100755 (executable)
@@ -2,6 +2,10 @@
 \brief Declaration of the structures and functions.
 */
 
+#ifdef __MINGW32__
+#define __attribute__(a)
+#endif
+
 struct ReadLogStruct;//forward declaration
 
 struct getwordstruct