aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/plugin.h')
-rw-r--r--plugin/plugin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/plugin.h b/plugin/plugin.h
index c5a5e89..902d1d7 100644
--- a/plugin/plugin.h
+++ b/plugin/plugin.h
@@ -7,7 +7,9 @@ extern "C" {
#define GSR_PLUGIN_INTERFACE_MAJOR_VERSION 0
#define GSR_PLUGIN_INTERFACE_MINOR_VERSION 1
-#define GSR_PLUGIN_INTERFACE_VERSION ((GSR_PLUGIN_INTERFACE_MAJOR_VERSION << 16) | GSR_PLUGIN_INTERFACE_MINOR_VERSION)
+
+#define GSR_PLUGIN_INTERFACE_MAKE_VERSION(major, minor) (((major) << 16) | (minor))
+#define GSR_PLUGIN_INTERFACE_VERSION GSR_PLUGIN_INTERFACE_MAKE_VERSION(GSR_PLUGIN_INTERFACE_MAJOR_VERSION, GSR_PLUGIN_INTERFACE_MINOR_VERSION)
#include <stdbool.h>