aboutsummaryrefslogtreecommitdiff
path: root/gdb/jit-reader.in
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-03-01 21:09:55 +0000
committerPedro Alves <palves@redhat.com>2012-03-01 21:09:55 +0000
commitc9b873354a17fb8e065e86cb32117524ea796375 (patch)
treed196762b578492acdfb1e5be7aebb8cf63daae4d /gdb/jit-reader.in
parent9340a6c0be7b3c4ed008c16c42a9da1350b42c10 (diff)
downloadgdb-c9b873354a17fb8e065e86cb32117524ea796375.zip
gdb-c9b873354a17fb8e065e86cb32117524ea796375.tar.gz
gdb-c9b873354a17fb8e065e86cb32117524ea796375.tar.bz2
2012-03-01 Pedro Alves <palves@redhat.com>
* jit-reader.in (plugin_is_GPL_compatible): Add declarations for both __cplusplus and !__cplusplus.
Diffstat (limited to 'gdb/jit-reader.in')
-rw-r--r--gdb/jit-reader.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/jit-reader.in b/gdb/jit-reader.in
index ccc68e4..42c28b5 100644
--- a/gdb/jit-reader.in
+++ b/gdb/jit-reader.in
@@ -36,6 +36,7 @@ extern "C" {
#ifdef __cplusplus
#define GDB_DECLARE_GPL_COMPATIBLE_READER \
extern "C" { \
+ extern int plugin_is_GPL_compatible (void); \
extern int plugin_is_GPL_compatible (void) \
{ \
return 0; \
@@ -45,6 +46,7 @@ extern "C" {
#else
#define GDB_DECLARE_GPL_COMPATIBLE_READER
+ extern int plugin_is_GPL_compatible (void); \
extern int plugin_is_GPL_compatible (void) \
{ \
return 0; \