summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2017-11-11 23:42:56 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2017-11-12 00:28:22 +0200
commit4c6aef17d645fd501a56f1d09d3a54a0dc0c1fa3 (patch)
tree3bb7df30c8022d7117cffe95c09e5255e654d36a
parent8feb2f98f33d6f0351f9703823e612935239eaab (diff)
downloadfribidi-4c6aef17d645fd501a56f1d09d3a54a0dc0c1fa3.tar.gz
Just use the GCC attributes here directly as well
-rw-r--r--lib/fribidi-common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fribidi-common.h b/lib/fribidi-common.h
index f5497e5..bf7b574 100644
--- a/lib/fribidi-common.h
+++ b/lib/fribidi-common.h
@@ -62,13 +62,9 @@
# endif /* !__FRIBIDI_DOC */
# define FRIBIDI_BEGIN_DECLS G_BEGIN_DECLS
# define FRIBIDI_END_DECLS G_END_DECLS
-# define FRIBIDI_GNUC_CONST G_GNUC_CONST
-# define FRIBIDI_GNUC_DEPRECATED G_GNUC_DEPRECATED
# define FRIBIDI_GNUC_BEGIN_IGNORE_DEPRECATIONS G_GNUC_BEGIN_IGNORE_DEPRECATIONS
# define FRIBIDI_GNUC_END_IGNORE_DEPRECATIONS G_GNUC_END_IGNORE_DEPRECATIONS
#else /* !FRIBIDI_USE_GLIB */
-# define FRIBIDI_GNUC_CONST
-# define FRIBIDI_GNUC_DEPRECATED
# define FRIBIDI_GNUC_BEGIN_IGNORE_DEPRECATIONS
# define FRIBIDI_GNUC_END_IGNORE_DEPRECATIONS
#endif /* !FRIBIDI_USE_GLIB */
@@ -77,10 +73,14 @@
# define FRIBIDI_GNUC_WARN_UNUSED __attribute__((__warn_unused_result__))
# define FRIBIDI_GNUC_MALLOC __attribute__((__malloc__))
# define FRIBIDI_GNUC_HIDDEN __attribute__((__visibility__ ("hidden")))
+# define FRIBIDI_GNUC_CONST __attribute__((__const__))
+# define FRIBIDI_GNUC_DEPRECATED __attribute__((__unused__))
#else /* __GNUC__ */
# define FRIBIDI_GNUC_WARN_UNUSED
# define FRIBIDI_GNUC_MALLOC
# define FRIBIDI_GNUC_HIDDEN
+# define FRIBIDI_GNUC_CONST
+# define FRIBIDI_GNUC_DEPRECATED
#endif /* __GNUC__ */
/* FRIBIDI_BEGIN_DECLS should be used at the beginning of your declarations,