[lxc-devel] [go-lxc/v2] Move LXC_DEVEL define to after version.h include

stgraber on Github lxc-bot at linuxcontainers.org
Sat Oct 29 18:28:30 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 427 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161029/abd3f4b2/attachment.bin>
-------------- next part --------------
From 86ba6edc735a9e0725e77c2be47406d29c2d60ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sat, 29 Oct 2016 14:27:21 -0400
Subject: [PATCH] Move LXC_DEVEL define to after version.h include
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Otherwise it'll always define it and lead to it being defined twice.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc-binding.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lxc-binding.go b/lxc-binding.go
index b1af36e..5d68ce5 100644
--- a/lxc-binding.go
+++ b/lxc-binding.go
@@ -8,12 +8,12 @@ package lxc
 
 // #cgo pkg-config: lxc
 // #cgo LDFLAGS: -llxc -lutil
-// #ifndef LXC_DEVEL
-// #define LXC_DEVEL 0
-// #endif
 // #include <lxc/lxccontainer.h>
 // #include <lxc/version.h>
 // #include "lxc-binding.h"
+// #ifndef LXC_DEVEL
+// #define LXC_DEVEL 0
+// #endif
 import "C"
 
 import (


More information about the lxc-devel mailing list