[vala/wip/valadoc-code-context: 587/587] vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/valadoc-code-context: 587/587] vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile
- Date: Fri, 6 Dec 2019 17:43:29 +0000 (UTC)
commit 12473296d5d0f3b44d327f0fef2c7fee11a88432
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Jan 3 13:30:26 2019 +0100
vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile
vala/valacodecontext.vala | 2 +-
vala/valaprofile.vala | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index adbf04c15..8907e486e 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -589,7 +589,7 @@ public class Vala.CodeContext {
add_external_package ("glib-2.0");
add_external_package ("gobject-2.0");
}
- } else if (profile == "posix") {
+ } else if (profile == "posix" || profile == "libc") {
this.profile = Profile.POSIX;
add_define ("POSIX");
diff --git a/vala/valaprofile.vala b/vala/valaprofile.vala
index 1ef0bd516..50350a85f 100644
--- a/vala/valaprofile.vala
+++ b/vala/valaprofile.vala
@@ -22,5 +22,6 @@
public enum Vala.Profile {
GOBJECT,
- POSIX
+ LIBC,
+ POSIX = LIBC
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]