fix radare_plugin redundantly defined (#6165)

without these guards the linker complains:

p/asm_z80.o:(.data.rel+0x0): multiple definition of `radare_plugin'
p/asm_m68k_cs.o:(.data.rel+0x0): first defined here
collect2: error: ld returned 1 exit status
This commit is contained in:
Stefan Marsiske 2016-11-09 16:35:47 +00:00 committed by radare
parent e4f57ae9ca
commit ec4e60d2bd

View File

@ -27,8 +27,10 @@ RAsmPlugin r_asm_plugin_z80 = {
.assemble = &do_assemble,
};
#ifndef CORELIB
struct r_lib_struct_t radare_plugin = {
.type = R_LIB_TYPE_ASM,
.data = &r_asm_plugin_z80,
.version = R2_VERSION
};
#endif