diff options
author | Colin Walters <walters@verbum.org> | 2017-06-27 21:14:34 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2017-06-28 11:23:01 -0400 |
commit | 71d875543c91b2b6dd710ce6c78696c6c332a1ae (patch) | |
tree | 432804639557b573c1400bbdf16afa3e6816034b | |
parent | e55fd8ee318b858c8fadd223157d60952746200f (diff) | |
download | libglnx-71d875543c91b2b6dd710ce6c78696c6c332a1ae.tar.gz |
macros: Avoid scanning macros
`g-ir-scanner` is confused by some of the syntax extensions in `G_IN_SET()`;
none of this is applicable to bindings, so just skip it.
-rw-r--r-- | glnx-macros.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glnx-macros.h b/glnx-macros.h index b5127b7..24705af 100644 --- a/glnx-macros.h +++ b/glnx-macros.h @@ -28,6 +28,9 @@ G_BEGIN_DECLS +/* All of these are for C only. */ +#ifndef __GI_SCANNER__ + /* Taken from https://github.com/systemd/systemd/src/basic/string-util.h * at revision v228-666-gcf6c8c4 */ @@ -179,4 +182,6 @@ G_BEGIN_DECLS _GLNX_MAKE_ANONYMOUS(_glnx_ht_iter_it_), kt, k, \ gpointer, _GLNX_MAKE_ANONYMOUS(_glnx_ht_iter_v_)) +#endif /* GI_SCANNER */ + G_END_DECLS |