This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: [BUG] __cplusplus is defined when compiling in C

Part Number: CODECOMPOSER

Hi,

I'm trying to detect TI Compilers and platform properties at compile time.
Things like language, endianness, architecture (32bits), compiler, etc.

I have 2 problems:

1. Even if I'm compiling with the C compiler (using the --c11 flag), the __cplusplus symbol is still defined which breaks all detection logic.
    How can I detect if I'm using C or C++ with the TI compiler? 

2. It appears __BYTE_ORDER__ and __BYTE_ORDER are not defined by the compiler. 
    How can I detect endianness at compile time?

Here's more info about my compiler:

Best regards,

Gabriel