# HG changeset patch
# User Darren Salt <[EMAIL PROTECTED]>
# Date 1181310472 -3600
# Node ID 177b87440a2474e26bf090746737bde916982331
# Parent  09ecd1c6d5b83f10ecd9c88b87d96c3240e94d42
Protect attribute declarations against, e.g., random printf redefinitions.

diff -r 177b87440a2474e26bf090746737bde916982331 -r 
09ecd1c6d5b83f10ecd9c88b87d96c3240e94d42 src/xine-utils/attributes.h
--- a/src/xine-utils/attributes.h       Fri Jun 08 14:47:52 2007 +0100
+++ b/src/xine-utils/attributes.h       Fri Jun 08 00:40:11 2007 +0100
@@ -50,22 +50,22 @@
 
 /* Export protected only for libxine functions */
 #if defined(XINE_LIBRARY_COMPILE) && 
defined(SUPPORT_ATTRIBUTE_VISIBILITY_PROTECTED)
-# define XINE_PROTECTED __attribute__((visibility("protected")))
+# define XINE_PROTECTED __attribute__((__visibility__("protected")))
 #elif defined(XINE_LIBRARY_COMPILE) && 
defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
-# define XINE_PROTECTED __attribute__((visibility("default")))
+# define XINE_PROTECTED __attribute__((__visibility__("default")))
 #else
 # define XINE_PROTECTED
 #endif
 
 #ifdef SUPPORT_ATTRIBUTE_SENTINEL
-# define XINE_SENTINEL __attribute__((sentinel))
+# define XINE_SENTINEL __attribute__((__sentinel__))
 #else
 # define XINE_SENTINEL
 #endif
 
 #ifndef __attr_unused
 # ifdef SUPPORT_ATTRIBUTE_UNUSED
-#  define __attr_unused __attribute__((unused))
+#  define __attr_unused __attribute__((__unused__))
 # else
 #  define __attr_unused
 # endif
@@ -73,12 +73,12 @@
 
 /* Format attributes */
 #ifdef SUPPORT_ATTRIBUTE_FORMAT
-# define XINE_FORMAT_PRINTF(fmt,var) __attribute__((format(printf, fmt, var)))
+# define XINE_FORMAT_PRINTF(fmt,var) __attribute__((__format__(__printf__, 
fmt, var)))
 #else
 # define XINE_FORMAT_PRINTF(fmt,var)
 #endif
 #ifdef SUPPORT_ATTRIBUTE_FORMAT_ARG
-# define XINE_FORMAT_PRINTF_ARG(fmt) __attribute__((format_arg(fmt)))
+# define XINE_FORMAT_PRINTF_ARG(fmt) __attribute__((__format_arg__(fmt)))
 #else
 # define XINE_FORMAT_PRINTF_ARG(fmt)
 #endif

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to