codegen: Add support for feature test macros
commitfcda327ebfc946de971ce7fd9c2715b6d28b518b
authorDr. Michael Lauer <mickey@vanille-media.de>
Tue, 20 Feb 2018 15:47:34 +0000 (20 16:47 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Feb 2018 21:16:19 +0000 (20 22:16 +0100)
treedc922404216544cff4f2b77175e436c4c5888cd2
parent00791762328402bb337448b5082c4da126d8b29d
codegen: Add support for feature test macros

This adds new CCode string attribute 'feature_test_macro = "VALUE"'. Such
values will be added before the headers section as '#define VALUE'.

https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

https://bugzilla.gnome.org/show_bug.cgi?id=793444
ccode/Makefile.am
ccode/valaccodefeaturetestmacro.vala [new file with mode: 0644]
ccode/valaccodefile.vala
codegen/valaccode.vala
codegen/valaccodeattribute.vala
codegen/valaccodebasemodule.vala
vala/valausedattr.vala