Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10375

Define our own zbx_int32_t instead of using common name uint32_t

XMLWordPrintable

      One can spot the following piece in mbed tls library sources:

      #ifdef _MSC_VER
      #include <basetsd.h>
      typedef UINT32 uint32_t;
      #else
      #include <stdint.h>
      #endif
      

      This conflicts with Zabbix definition:

      #if defined(_WINDOWS)
      #	ifndef uint32_t
      #		define uint32_t	__int32
      #	endif
      #endif
      

      ...and forces us to #undef uint32_t on Windows before we include mbed tls headers, which makes the further use of uint32_t somewhat ambiguous.

      I would like to suggest defining zbx_uint32_t properly (as we define zbx_uint64_t) and use a temporary #define uint32_t zbx_uint32_t while we make continuous effort to eliminate uint32_t from Zabbix code.

            Unassigned Unassigned
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: