[SOLVED] Is there a way to change definitions of __INT32_TYPE__ and __UINT32_TYPE__?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Is there a way to change definitions of __INT32_TYPE__ and __UINT32_TYPE__?

    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
  • > ... which is a system file and should not be edited.

    This is only relevant if you work with multiple toolchains and/or platforms in a project, and need to maintain source level compatibility.
    For my private projects, I do whatever I like.