Package: visualboyadvance / 1.8.0.dfsg-4

17_expr_namespace_include.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Etienne Millon <me@emillon.org>
Subject: Do not include C headers within a namespace
Bug-Debian: https://bugs.debian.org/831197

This breaks the build with GCC 6.

diff --git a/src/expr.cpp b/src/expr.cpp
index 25c68f6..389800d 100644
--- a/src/expr.cpp
+++ b/src/expr.cpp
@@ -14,12 +14,12 @@
 
 #line 1 "expr.y"
 
-namespace std {  
+
 #include <stdio.h>
 #include <memory.h>
 #include <stdlib.h>
 #include <string.h>
-}
+
 
 using namespace std;