diff options
author | Pedro Alves <palves@redhat.com> | 2014-10-13 21:45:40 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-10-13 23:06:05 +0100 |
commit | 58da9bdea03d5b96943696b6c7e69bef6ef419cc (patch) | |
tree | ffbc1dd1152339a9f1289e36f66de3929023d9c6 /gdb/features/feature_to_c.sh | |
parent | fabd3880c70c46c1511e2b778b002fa64e521852 (diff) | |
download | binutils-gdb-palves/cxx-conversion-attempt.tar.gz |
Make GDB build with both g++ and gcc, on x86_64 Fedora 20palves/cxx-conversion-attempt
Diffstat (limited to 'gdb/features/feature_to_c.sh')
-rwxr-xr-x[-rw-r--r--] | gdb/features/feature_to_c.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/features/feature_to_c.sh b/gdb/features/feature_to_c.sh index 1f435362f45..e6665f118da 100644..100755 --- a/gdb/features/feature_to_c.sh +++ b/gdb/features/feature_to_c.sh @@ -63,7 +63,13 @@ for input; do done echo >> $output -echo "const char *const xml_builtin[][2] = {" >> $output + +echo "#ifdef __cplusplus" >> $output +echo "# define EXTERN_CONST extern const" >> $output +echo "#else" >> $output +echo "# define EXTERN_CONST const" >> $output +echo "#endif" >> $output +echo "EXTERN_CONST char *const xml_builtin[][2] = {" >> $output for input; do basename=`echo $input | sed 's,.*/,,'` |