Browse Source

* view.c: s/attrset/tty_setcolor/g

Roland Illig 19 years ago
parent
commit
ba9bd33681
2 changed files with 4 additions and 3 deletions
  1. 2 1
      src/ChangeLog
  2. 2 2
      src/wtools.h

+ 2 - 1
src/ChangeLog

@@ -1,9 +1,10 @@
-
 2006-02-03  Roland Illig  <roland.illig@gmx.de>
 
 	* widget.c: Added assertions to prevent bugs like the one from
 	view.c(view_labels) from hiding that long.
 	* view.c: s/attrset/tty_setcolor/g
+	* wtools.h: Replaced the printf-like attribute with __printf__,
+	since GNU gettext defines a macro printf on some systems.
 
 2006-02-03  Pavel Tsekov  <ptsekov@gmx.net>
 

+ 2 - 2
src/wtools.h

@@ -66,11 +66,11 @@ void query_set_sel (int new_sel);
 /* Create message box but don't dismiss it yet, not background safe */
 struct Dlg_head *create_message (int flags, const char *title,
 				 const char *text, ...)
-    __attribute__ ((format (printf, 3, 4)));
+    __attribute__ ((format (__printf__, 3, 4)));
 
 /* Show message box, background safe */
 void message (int flags, const char *title, const char *text, ...)
-    __attribute__ ((format (printf, 3, 4)));
+    __attribute__ ((format (__printf__, 3, 4)));
 
 
 /* Use this as header for message() - it expands to "Error" */