From 5cbc5e1c37fba83ba2577aad9b66de2c7587e63f Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Mon, 18 Feb 2019 14:31:25 +0100 Subject: Add conditionnal support of bindings version 2 Bindings version 2 will become legacy soon. This patch allows their removal Change-Id: Iecad3abd0ddd714e5d55c0b935be756a29d1ca37 Signed-off-by: Jose Bollo --- src/afb-api-so-v2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/afb-api-so-v2.c') diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index 71d51c04..a0399da1 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -15,6 +15,8 @@ * limitations under the License. */ +#if WITH_LEGACY_BINDING_V2 + #define _GNU_SOURCE #include @@ -221,3 +223,4 @@ int afb_api_so_v2_add(const char *path, void *handle, struct afb_apiset *declare return -1; } +#endif -- cgit 1.2.3-korg