Fix dupped extern C issue

This commit is contained in:
pancake 2017-09-15 13:11:22 +02:00
parent 94ba8ea79a
commit dcec3c0e99
3 changed files with 4 additions and 7 deletions

View File

@ -256,12 +256,8 @@ extern RAsmPlugin r_asm_plugin_evm;
#endif
#ifdef __cplusplus
}
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -3,9 +3,6 @@
#ifndef R2_CORE_H
#define R2_CORE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "r_socket.h"
#include "r_types.h"
#include "r_magic.h"
@ -32,6 +29,9 @@ extern "C" {
#include "r_crypto.h"
#include "r_bind.h"
#ifdef __cplusplus
extern "C" {
#endif
R_LIB_VERSION_HEADER(r_core);
#define R_CORE_CMD_EXIT -2

View File

@ -58,6 +58,7 @@ r2 -q - <<EOF
?e #define R_EGG_OS_FREEBSD \`?h freebsd\`
EOF
#endif
#define R_EGG_OS_LINUX 0x5ca62a43
#define R_EGG_OS_OSX 0x0ad593a1
#define R_EGG_OS_DARWIN 0xd86d1ae2