diff --git a/r2poke/Makefile b/r2poke/Makefile index 7a97766b3..ac6792946 100644 --- a/r2poke/Makefile +++ b/r2poke/Makefile @@ -10,6 +10,7 @@ LDFLAGS+=$(shell pkg-config --libs r_core) LDFLAGS+=$(shell pkg-config --libs poke) R2PM_PLUGDIR?=$(shell r2 -H R2_USER_PLUGINS) LDFLAGS+=-Wl,-rpath,$(shell r2pm -H R2PM_PREFIX)/lib +CFLAGS+=-DR2POKE_VERSION=\"1.0.0\" # poke-3.3 doesnt support this, we must wait for 4.0 to enable this POKE4=$(shell r2pm -r pkg-config --modversion poke| grep ^4 && echo 1) diff --git a/r2poke/core_poke.c b/r2poke/core_poke.c index 9dd26cee7..43bf48d89 100644 --- a/r2poke/core_poke.c +++ b/r2poke/core_poke.c @@ -241,6 +241,7 @@ RCorePlugin r_core_plugin_poke = { .name = "poke", .desc = "GNU/POKE for radare2", .license = "GPL3", + .version = R2POKE_VERSION }, .call = r_cmd_poke_call, .init = r_cmd_poke_init,