]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Define VALA_X_Y according to compiler version
authorJürg Billeter <j@bitron.ch>
Wed, 4 Aug 2010 17:57:07 +0000 (19:57 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 5 Aug 2010 19:20:04 +0000 (21:20 +0200)
compiler/valacompiler.vala

index f271c6f48a2615975bf87c3de7157adf22265875..97cca882165900a26016a7cd93e24090ef7e580b 100644 (file)
@@ -267,6 +267,10 @@ class Vala.Compiler {
                        }
                }
 
+               for (int i = 2; i <= 10; i += 2) {
+                       context.add_define ("VALA_0_%d".printf (i));
+               }
+
                if (context.profile == Profile.POSIX) {
                        if (!nostdpkg) {
                                /* default package */