Hi,
I want to use library (compiled for GCC) in my embbeded studio project. For compiler I want to use SEGGER compiler.
The problem is the type definitons for __UINT32_TYPE__ and __INT32_TYPE__.
__INT32_TYPE__ is for gcc defined as long int and in Segger compiler as int.
__UINT32_TYPE__ is for gcc defined as long unsigned int and in Segger compiler as unsigned int.
So I redefined __INT32_TYPE__ and __UINT32_TYPE__ in Preprocessor Definitions of Project Options.
The project is that way successfully compiled and the library works as it should.
But now I got a bunch of warnings for redefinitions :
'__INT32_TYPE__' macro redefined [-Wmacro-redefined]
'__UINT32_TYPE__' macro redefined [-Wmacro-redefined]
Is there any better way or option to do that as I want to get rid of that warnings?
Best regards, Jure
I want to use library (compiled for GCC) in my embbeded studio project. For compiler I want to use SEGGER compiler.
The problem is the type definitons for __UINT32_TYPE__ and __INT32_TYPE__.
__INT32_TYPE__ is for gcc defined as long int and in Segger compiler as int.
__UINT32_TYPE__ is for gcc defined as long unsigned int and in Segger compiler as unsigned int.
So I redefined __INT32_TYPE__ and __UINT32_TYPE__ in Preprocessor Definitions of Project Options.
The project is that way successfully compiled and the library works as it should.
But now I got a bunch of warnings for redefinitions :
'__INT32_TYPE__' macro redefined [-Wmacro-redefined]
'__UINT32_TYPE__' macro redefined [-Wmacro-redefined]
Is there any better way or option to do that as I want to get rid of that warnings?
Best regards, Jure