]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
libxl: fix build for gcc prior to 4.3
authorJan Beulich <JBeulich@suse.com>
Mon, 13 Aug 2012 17:08:37 +0000 (18:08 +0100)
committerJan Beulich <JBeulich@suse.com>
Mon, 13 Aug 2012 17:08:37 +0000 (18:08 +0100)
So far all we (explicitly) require is gcc 3.4 or better, so we
shouldn't be unconditionally using features supported only by much
newer versions.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_internal.h

index cf5d9e92df647cfec8b43f9b4eeec3ec7cafbfc8..7c3b1797389f180d233b77d0af9c76331341d12c 100644 (file)
 #ifdef LIBXL_H
 # error libxl.h should be included via libxl_internal.h, not separately
 #endif
-#define LIBXL_EXTERNAL_CALLERS_ONLY \
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
+# define LIBXL_EXTERNAL_CALLERS_ONLY \
     __attribute__((warning("may not be called from within libxl")))
+#endif
 
 #include "libxl.h"
 #include "_paths.h"