summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Bakos <ybakos@humanoriented.com>2016-06-07 10:19:39 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-06-07 10:22:59 -0500
commitd6d7dab487a8acd02c1fae45eea78954411c51b8 (patch)
tree25357b2937992b3f7bfc31a6a4d723b8939038a3
parente1f2ba2b37e79220baec4c1c229228734a344595 (diff)
scanner: Move PROGRAM_NAME define
PROGRAM_NAME was defined within the if block of HAVE_LIBXML, causing a compilation failure when libxml is not present. Move the define of PROGRAM_NAME out of the if block. Signed-off-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
-rw-r--r--src/scanner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 705473b..4708cae 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -42,8 +42,6 @@
#if HAVE_LIBXML
#include <libxml/parser.h>
-#define PROGRAM_NAME "wayland-scanner"
-
/* Embedded wayland.dtd file, see dtddata.S */
extern char DTD_DATA_begin;
extern int DTD_DATA_len;
@@ -51,6 +49,8 @@ extern int DTD_DATA_len;
#include "wayland-util.h"
+#define PROGRAM_NAME "wayland-scanner"
+
enum side {
CLIENT,
SERVER,