summaryrefslogtreecommitdiff
path: root/plugin/fulltext
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/fulltext')
-rw-r--r--plugin/fulltext/plugin_example.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/fulltext/plugin_example.c b/plugin/fulltext/plugin_example.c
index 34350e317ba..7da6672190c 100644
--- a/plugin/fulltext/plugin_example.c
+++ b/plugin/fulltext/plugin_example.c
@@ -17,6 +17,10 @@
#include <ctype.h>
#include <mysql/plugin.h>
+#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
+#define __attribute__(A)
+#endif
+
static long number_of_calls= 0; /* for SHOW STATUS, see below */
/*