From 71e88bc282fd41310998ea376a0663d6dbca8a90 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 6 Jan 2008 22:53:31 +0000 Subject: [PATCH] Don't add :: prefix to C++ fundamental types --- pybindgen/gccxmlparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/gccxmlparser.py b/pybindgen/gccxmlparser.py index 75a1611..6068aa5 100644 --- a/pybindgen/gccxmlparser.py +++ b/pybindgen/gccxmlparser.py @@ -54,7 +54,7 @@ def normalize_name(decl_string): cls_name = decl_string template_parameters = None if not _digits.match(cls_name): - if not cls_name.startswith('::'): + if not cls_name.startswith('::') and cls_name not in cpptypes.FUNDAMENTAL_TYPES: cls_name = '::' + cls_name if template_parameters is None: return cls_name