[FriBidi-commit] fribidi/lib fribidi-common.h,1.5,1.6

Behdad Esfahbod behdad at pdx.freedesktop.org
Tue May 25 05:00:31 PDT 2004


Update of /cvs/fribidi/fribidi/lib
In directory pdx:/tmp/cvs-serv20900

Modified Files:
	fribidi-common.h 
Log Message:
Define extra GNU function attributes only if using GLIB.


Index: fribidi-common.h
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/fribidi-common.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/fribidi-common.h	12 May 2004 08:17:19 -0000	1.5
+++ b/fribidi-common.h	25 May 2004 12:00:29 -0000	1.6
@@ -75,25 +75,28 @@
 #if FRIBIDI_USE_GLIB
 # ifndef __C2MAN__
 #  include <glib/gmacros.h>
+# endif	/* !__C2MAN__ */
 # define FRIBIDI_GNUC_CONST		G_GNUC_CONST
 # define FRIBIDI_GNUC_DEPRECATED	G_GNUC_DEPRECATED
-# endif	/* !__C2MAN__ */
-#else /* !FRIBIDI_USE_GLIB */
-# define FRIBIDI_GNUC_CONST
-# define FRIBIDI_GNUC_DEPRECATED
-#endif /* !FRIBIDI_USE_GLIB */
-#if __GNUC__ > 2
-# define FRIBIDI_GNUC_WARN_UNUSED	\
+# if __GNUC__ > 2
+#  define FRIBIDI_GNUC_WARN_UNUSED	\
 	__attribute__((__warn_unused_result__))
-# define FRIBIDI_GNUC_MALLOC		\
+#  define FRIBIDI_GNUC_MALLOC		\
 	__attribute__((__malloc__))
-# define FRIBIDI_GNUC_HIDDEN		\
+#  define FRIBIDI_GNUC_HIDDEN		\
 	__attribute__((__visibility__ ("hidden")))
-#else /* __GNUC__ <= 2 */
+# else /* __GNUC__ <= 2 */
+#  define FRIBIDI_GNUC_WARN_UNUSED
+#  define FRIBIDI_GNUC_MALLOC
+#  define FRIBIDI_GNUC_HIDDEN
+# endif /* __GNUC__ <= 2 */
+#else /* !FRIBIDI_USE_GLIB */
+# define FRIBIDI_GNUC_CONST
+# define FRIBIDI_GNUC_DEPRECATED
 # define FRIBIDI_GNUC_WARN_UNUSED
 # define FRIBIDI_GNUC_MALLOC
 # define FRIBIDI_GNUC_HIDDEN
-#endif /* __GNUC__ <= 2 */
+#endif /* !FRIBIDI_USE_GLIB */
 
 
 #define fribidi_version_info FRIBIDI_NAMESPACE(version_info)




More information about the FriBidi-Commit mailing list