Alexandre Julliard : winegcc: Add a printf format attribute to the strmake( ) function.

Alexandre Julliard julliard at winehq.org
Mon Aug 2 11:03:51 CDT 2010


Module: wine
Branch: master
Commit: ff090a34688f7dafe1be159fb343bcb2b0e5a5e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ff090a34688f7dafe1be159fb343bcb2b0e5a5e5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Aug  2 12:13:25 2010 +0200

winegcc: Add a printf format attribute to the strmake() function.

---

 tools/winegcc/utils.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tools/winegcc/utils.h b/tools/winegcc/utils.h
index d819415..7e124c2 100644
--- a/tools/winegcc/utils.h
+++ b/tools/winegcc/utils.h
@@ -21,6 +21,10 @@
  */
 
 
+#ifndef __GNUC__
+#define __attribute__(X)
+#endif
+
 #ifndef DECLSPEC_NORETURN
 # if defined(_MSC_VER) && (_MSC_VER >= 1200) && !defined(MIDL_PASS)
 #  define DECLSPEC_NORETURN __declspec(noreturn)
@@ -46,7 +50,7 @@ void error(const char* s, ...) DECLSPEC_NORETURN;
 void* xmalloc(size_t size);
 void* xrealloc(void* p, size_t size);
 char *xstrdup( const char *str );
-char* strmake(const char* fmt, ...);
+char* strmake(const char* fmt, ...) __attribute__((__format__ (__printf__, 1, 2 )));
 int strendswith(const char* str, const char* end);
 
 typedef struct {




More information about the wine-cvs mailing list