aboutsummaryrefslogtreecommitdiffstats
path: root/controller/ctl-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ctl-plugin.h')
-rw-r--r--controller/ctl-plugin.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/controller/ctl-plugin.h b/controller/ctl-plugin.h
index c0aa2e2..7c1d0f1 100644
--- a/controller/ctl-plugin.h
+++ b/controller/ctl-plugin.h
@@ -20,17 +20,16 @@
#ifndef _CTL_PLUGIN_INCLUDE_
#define _CTL_PLUGIN_INCLUDE_
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
+
#include <json-c/json.h>
#ifndef CTL_PLUGIN_MAGIC
#define CTL_PLUGIN_MAGIC 852369147
#endif
-#ifndef PUBLIC
- #define PUBLIC
-#endif
-
#ifndef STATIC
#define STATIC static
#endif
@@ -71,4 +70,4 @@ typedef void*(*DispatchPluginInstallCbT)(CtlPluginT *plugin, void* handle);
#define CTLP_ONLOAD(plugin, handle) void* CtlPluginOnload(CtlPluginT *plugin, void* handle)
#define CTLP_CAPI(funcname, source, argsJ, queryJ, context) int funcname(CtlSourceT *source, json_object* argsJ, json_object* queryJ, void* context)
-#endif /* _CTL_PLUGIN_INCLUDE_ */ \ No newline at end of file
+#endif /* _CTL_PLUGIN_INCLUDE_ */