I am reusing some structures from c project. That project uses auto/preincluded header with some type definitions. That means that there is no call:
#include "architecture.h"
in the related source files.
I am trying fix this with defining types from qt pri file:
DEFINES += int8_t="\"signed char\""
DEFINES += uint8_t="\"unsigned char\""
DEFINES += int16_t="\"signed int\""
DEFINES += uint16_t="\"unsigned int\""
DEFINES += int32_t="\"signed long int\""
DEFINES += uint32_t="\"unsigned long int\""
I get compiler errors "duplicate signed", "multiple types in one declaration",...
There is somethin about the types and defines at typedef vs define.
Is there a better way to solve this case with auto include? How to fix this?