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:
@@ -340,6 +340,8 @@
|
||||
#include "F1AP_Cells-To-Be-Broadcast-Item.h"
|
||||
#include "F1AP_QCI.h"
|
||||
|
||||
#include "f1ap_default_values.h"
|
||||
|
||||
#include "conversions.h"
|
||||
#include "platform_types.h"
|
||||
#include "common/utils/LOG/log.h"
|
||||
@@ -359,22 +361,13 @@
|
||||
|
||||
#include "assertions.h"
|
||||
|
||||
#if defined(ENB_MODE)
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "f1ap_default_values.h"
|
||||
#define F1AP_ERROR(x, args...) LOG_E(F1AP, x, ##args)
|
||||
#define F1AP_WARN(x, args...) LOG_W(F1AP, x, ##args)
|
||||
#define F1AP_TRAF(x, args...) LOG_I(F1AP, x, ##args)
|
||||
#define F1AP_INFO(x, args...) LOG_I(F1AP, x, ##args)
|
||||
#define F1AP_DEBUG(x, args...) LOG_I(F1AP, x, ##args)
|
||||
#else
|
||||
//# include "mme_default_values.h"
|
||||
#define F1AP_ERROR(x, args...) do { fprintf(stdout, "[F1AP][E]"x, ##args); } while(0)
|
||||
#define F1AP_WARN(x, args...) do { fprintf(stdout, "[F1AP][W]"x, ##args); } while(0)
|
||||
#define F1AP_TRAF(x, args...) do { fprintf(stdout, "[F1AP][T]"x, ##args); } while(0)
|
||||
#define F1AP_INFO(x, args...) do { fprintf(stdout, "[F1AP][I]"x, ##args); } while(0)
|
||||
#define F1AP_DEBUG(x, args...) do { fprintf(stdout, "[F1AP][D]"x, ##args); } while(0)
|
||||
#endif
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "f1ap_default_values.h"
|
||||
#define F1AP_ERROR(x, args...) LOG_E(F1AP, x, ##args)
|
||||
#define F1AP_WARN(x, args...) LOG_W(F1AP, x, ##args)
|
||||
#define F1AP_TRAF(x, args...) LOG_I(F1AP, x, ##args)
|
||||
#define F1AP_INFO(x, args...) LOG_I(F1AP, x, ##args)
|
||||
#define F1AP_DEBUG(x, args...) LOG_I(F1AP, x, ##args)
|
||||
|
||||
//Forward declaration
|
||||
#define F1AP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "sctp_eNB_defs.h"
|
||||
|
||||
#include "m2ap_default_values.h"
|
||||
#include "m2ap_ids.h" //looks X2AP specific for HO
|
||||
#include "m2ap_timers.h"
|
||||
|
||||
|
||||
@@ -52,19 +52,12 @@
|
||||
|
||||
extern int asn1_xer_print;
|
||||
|
||||
#if defined(ENB_MODE)
|
||||
# include "common/utils/LOG/log.h"
|
||||
# include "m2ap_default_values.h"
|
||||
# define M2AP_INFO(x, args...) LOG_I(M2AP, x, ##args)
|
||||
# define M2AP_ERROR(x, args...) LOG_E(M2AP, x, ##args)
|
||||
# define M2AP_WARN(x, args...) LOG_W(M2AP, x, ##args)
|
||||
# define M2AP_DEBUG(x, args...) LOG_D(M2AP, x, ##args)
|
||||
#else
|
||||
# define M2AP_INFO(x, args...) do { fprintf(stdout, "[M2AP][I]"x, ##args); } while(0)
|
||||
# define M2AP_ERROR(x, args...) do { fprintf(stdout, "[M2AP][E]"x, ##args); } while(0)
|
||||
# define M2AP_WARN(x, args...) do { fprintf(stdout, "[M2AP][W]"x, ##args); } while(0)
|
||||
# define M2AP_DEBUG(x, args...) do { fprintf(stdout, "[M2AP][D]"x, ##args); } while(0)
|
||||
#endif
|
||||
#include "common/utils/LOG/log.h"
|
||||
#include "m2ap_default_values.h"
|
||||
#define M2AP_INFO(x, args...) LOG_I(M2AP, x, ##args)
|
||||
#define M2AP_ERROR(x, args...) LOG_E(M2AP, x, ##args)
|
||||
#define M2AP_WARN(x, args...) LOG_W(M2AP, x, ##args)
|
||||
#define M2AP_DEBUG(x, args...) LOG_D(M2AP, x, ##args)
|
||||
|
||||
#define M2AP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
|
||||
do {\
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "sctp_eNB_defs.h"
|
||||
|
||||
#include "m2ap_default_values.h"
|
||||
#include "m2ap_ids.h" //looks X2AP specific for HO
|
||||
#include "m2ap_timers.h"
|
||||
|
||||
|
||||
@@ -49,18 +49,11 @@
|
||||
|
||||
extern int asn1_xer_print;
|
||||
|
||||
#if defined(ENB_MODE)
|
||||
# include "common/utils/LOG/log.h"
|
||||
# define X2AP_INFO(x, args...) LOG_I(X2AP, x, ##args)
|
||||
# define X2AP_ERROR(x, args...) LOG_E(X2AP, x, ##args)
|
||||
# define X2AP_WARN(x, args...) LOG_W(X2AP, x, ##args)
|
||||
# define X2AP_DEBUG(x, args...) LOG_D(X2AP, x, ##args)
|
||||
#else
|
||||
# define X2AP_INFO(x, args...) do { fprintf(stdout, "[X2AP][I]"x, ##args); } while(0)
|
||||
# define X2AP_ERROR(x, args...) do { fprintf(stdout, "[X2AP][E]"x, ##args); } while(0)
|
||||
# define X2AP_WARN(x, args...) do { fprintf(stdout, "[X2AP][W]"x, ##args); } while(0)
|
||||
# define X2AP_DEBUG(x, args...) do { fprintf(stdout, "[X2AP][D]"x, ##args); } while(0)
|
||||
#endif
|
||||
#include "common/utils/LOG/log.h"
|
||||
#define X2AP_INFO(x, args...) LOG_I(X2AP, x, ##args)
|
||||
#define X2AP_ERROR(x, args...) LOG_E(X2AP, x, ##args)
|
||||
#define X2AP_WARN(x, args...) LOG_W(X2AP, x, ##args)
|
||||
#define X2AP_DEBUG(x, args...) LOG_D(X2AP, x, ##args)
|
||||
|
||||
#define X2AP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
|
||||
do {\
|
||||
|
||||
Reference in New Issue
Block a user