Remove cmake ENB_MODE option
ENB_MODE is a cmake option to swap the order of include directories. This has historical reasons; before OAI used cmake, it was very sensitive to the order of includes. Nowadays, the order does not matter. Remove this option, and fix the compilation issues that arise while doing so.
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "sctp_eNB_defs.h"
|
||||
|
||||
#include "m3ap_default_values.h"
|
||||
#include "m3ap_ids.h" //looks X2AP specific for HO
|
||||
#include "m3ap_timers.h"
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "sctp_eNB_defs.h"
|
||||
|
||||
#include "m3ap_default_values.h"
|
||||
#include "m3ap_ids.h" //looks X2AP specific for HO
|
||||
#include "m3ap_timers.h"
|
||||
|
||||
|
||||
@@ -50,19 +50,12 @@
|
||||
|
||||
extern int asn1_xer_print;
|
||||
|
||||
#if defined(ENB_MODE)
|
||||
# include "common/utils/LOG/log.h"
|
||||
# include "m3ap_default_values.h"
|
||||
# define M3AP_INFO(x, args...) LOG_I(M3AP, x, ##args)
|
||||
# define M3AP_ERROR(x, args...) LOG_E(M3AP, x, ##args)
|
||||
# define M3AP_WARN(x, args...) LOG_W(M3AP, x, ##args)
|
||||
# define M3AP_DEBUG(x, args...) LOG_D(M3AP, x, ##args)
|
||||
#else
|
||||
# define M3AP_INFO(x, args...) do { fprintf(stdout, "[M3AP][I]"x, ##args); } while(0)
|
||||
# define M3AP_ERROR(x, args...) do { fprintf(stdout, "[M3AP][E]"x, ##args); } while(0)
|
||||
# define M3AP_WARN(x, args...) do { fprintf(stdout, "[M3AP][W]"x, ##args); } while(0)
|
||||
# define M3AP_DEBUG(x, args...) do { fprintf(stdout, "[M3AP][D]"x, ##args); } while(0)
|
||||
#endif
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "m3ap_default_values.h"
|
||||
#define M3AP_INFO(x, args...) LOG_I(M3AP, x, ##args)
|
||||
#define M3AP_ERROR(x, args...) LOG_E(M3AP, x, ##args)
|
||||
#define M3AP_WARN(x, args...) LOG_W(M3AP, x, ##args)
|
||||
#define M3AP_DEBUG(x, args...) LOG_D(M3AP, x, ##args)
|
||||
|
||||
#define M3AP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
|
||||
do {\
|
||||
|
||||
Reference in New Issue
Block a user