configure: Make the vxWorks macro expand to itself
This fixes a problem in .st sequence programs that do this: %%#include <vxWorks.h> The pre-processor was replacing the token since the line is not a pre-processor directive (yet) and it doesn't appear inside "quotes". NB: This will break any code that is incorrectly using #if vxWorks instead of #ifdef vxWorks
This commit is contained in:
@@ -159,7 +159,7 @@ export TOOL_FAMILY = GNU
|
||||
|
||||
#--------------------------------------------------
|
||||
# Operating system flags
|
||||
OP_SYS_CPPFLAGS += -DvxWorks
|
||||
OP_SYS_CPPFLAGS += -DvxWorks=vxWorks
|
||||
OP_SYS_CFLAGS += -fno-builtin
|
||||
|
||||
# Fix for vxWorks 5 headers that use macros defined in vxWorks.h but
|
||||
|
||||
Reference in New Issue
Block a user