if !defined(OTHER_BUILD)
typedef struct CFItem
{
struct CFItem* nextPS; // This member MUST always be the first one!
char const* thrdPB;
union
{
TCB* tcbPS;
Sem* semPS; //<---------------------------- Here!
} syncU;
ulong idL;
ubyte codeB;
ubyte flagB;
} CFItem;
But I assume, the fail is not there, because when I define manually: GITVER=3686e892 A_Typedef.h don’t fails and compile right.
f I define manually GITVER=0x3686e892, the warning is out, and compiles perfect, so the question is, how can i turn the console string output into Hexadecimal?
After in code search… The type of sem is not defined!!! (!!!) (is not my code, I’m only the new kid in the Firma) but the structure should be not defined
The problem is that
execute_process (
COMMAND git rev-parse --short HEAD
OUTPUT_VARIABLE GIT_VER
)
Introduces an extra “\n” at the end of the GIT_VER string, now should I only supress the “\n” from the GIT_VER string
execute_process (
COMMAND git rev-parse --short HEAD
OUTPUT_VARIABLE GIT_VER
)
string(STRIP ${GIT_VER} GIT_VER) #to remove the "\n" at the end
target_compile_definitions(LibDEFINES PRIVATE
GITVER=0x${GIT_VER}
)