forked from epics_driver_modules/require
fix for systems where parts of T_A are macro names (e.g. linux)
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ HEADERS += require.h
|
||||
USR_INCLUDES_Linux=-idirafter ${EPICS_BASE}/include
|
||||
|
||||
# Pass T_A to the code
|
||||
USR_CFLAGS += -DT_A=${T_A}
|
||||
USR_CFLAGS += -DT_A='"${T_A}"'
|
||||
|
||||
# This should really go into some global WIN32 config file
|
||||
USR_CFLAGS_WIN32 += /D_WIN32_WINNT=0x501
|
||||
|
||||
@@ -25,7 +25,7 @@ LIB_LIBS += $(EPICS_BASE_IOC_LIBS)
|
||||
USR_INCLUDES_Linux=-idirafter ${EPICS_BASE}/include
|
||||
|
||||
# Pass T_A to the code
|
||||
USR_CFLAGS += -DT_A=${T_A}
|
||||
USR_CFLAGS += -DT_A='"${T_A}"'
|
||||
|
||||
# This should really go into some global WIN32 config file
|
||||
USR_CFLAGS_WIN32 += /D_WIN32_WINNT=0x501
|
||||
|
||||
@@ -229,9 +229,9 @@ const char epicsRelease[] = TOSTR(EPICS_VERSION)"."TOSTR(EPICS_REVISION)"."TOSTR
|
||||
const char epicsBasetype[] = TOSTR(EPICS_VERSION)"."TOSTR(EPICS_REVISION);
|
||||
|
||||
#ifndef T_A
|
||||
#error T_A not defined: Compile with USR_CFLAGS += -DT_A=${T_A}
|
||||
#error T_A not defined: Compile with USR_CFLAGS += -DT_A='"${T_A}"'
|
||||
#endif
|
||||
const char targetArch[] = TOSTR(T_A);
|
||||
const char targetArch[] = T_A;
|
||||
|
||||
#ifndef OS_CLASS
|
||||
#error OS_CLASS not defined: Try to compile with USR_CFLAGS += -DOS_CLASS='"${OS_CLASS}"'
|
||||
|
||||
Reference in New Issue
Block a user