[PATCH wayland] scanner: Fix broken private-code generation

Derek Foreman derekf at osg.samsung.com
Fri Feb 23 22:24:38 UTC 2018


Missing a closing bracket.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 src/scanner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scanner.c b/src/scanner.c
index c93070c..1737911 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1748,7 +1748,7 @@ emit_code(struct protocol *protocol, enum visibility vis)
 		       "# define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */\n"
 		       "#endif\n\n");
 
-		printf("#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4\n"
+		printf("#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)\n"
 		       "#define WL_PRIVATE __attribute__ ((visibility(\"hidden\")))\n"
 		       "#else\n"
 		       "#define WL_PRIVATE\n"
-- 
2.14.3



More information about the wayland-devel mailing list