[ 
https://issues.apache.org/jira/browse/AXIS2C-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dimuthu Gamage resolved AXIS2C-970.
-----------------------------------

    Resolution: Fixed

Thanks Dave for the fix. I rather changed the definition to 
"AXIS2_SKIP_INT_TYPEDEFS"  following the axis2 convention.

> New typedefs in axutil_utils_defines.h conflict with icu library
> ----------------------------------------------------------------
>
>                 Key: AXIS2C-970
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-970
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP
>            Reporter: Dave Meier
>            Priority: Critical
>         Attachments: axutil_utils_defines_h_diff.txt
>
>
> I am now getting an error compiling the latest code, because of the typedefs 
> added to axutil_utils_defines.h:
> +#if defined(WIN32)
>      /**
> +     * ANSI Type definitions for Windows
> +     */
> +    typedef unsigned __int8 uint8_t;
> +    typedef __int8 int8_t;
> +    typedef unsigned __int16 uint16_t;
> +    typedef __int16 int16_t;
> +    typedef unsigned __int32 uint32_t;
> +    typedef __int32 int32_t;
> +    typedef unsigned __int64 uint64_t;
> +    typedef __int64 int64_t;
> +#endif
> I also use the icu library (http://www.icu-project.org/) and it does the 
> following:
> #if U_HAVE_INTTYPES_H
> #include <inttypes.h>
> #else /* U_HAVE_INTTYPES_H */
> #if ! U_HAVE_INT8_T
> typedef signed char int8_t;
> #endif
> #if ! U_HAVE_UINT8_T
> typedef unsigned char uint8_t;
> #endif
> #if ! U_HAVE_INT16_T
> typedef signed short int16_t;
> #endif
> #if ! U_HAVE_UINT16_T
> typedef unsigned short uint16_t;
> #endif
> #if ! U_HAVE_INT32_T
> typedef signed int int32_t;
> #endif
> #if ! U_HAVE_UINT32_T
> typedef unsigned int uint32_t;
> #endif
> #if ! U_HAVE_INT64_T
> #if U_INT64_IS_LONG_LONG
>     typedef signed long long int64_t;
> #else
>     typedef signed __int64 int64_t;
> #endif
> #endif
> #if ! U_HAVE_UINT64_T
> #if U_INT64_IS_LONG_LONG
>     typedef unsigned long long uint64_t;
> #else
>     typedef unsigned __int64 uint64_t;
> #endif
> #endif
> #endif
> So they conflict which results in a compiler error.  Not sure what to do.  
> For now I will comment out the typedefs in axutil_utils_defines.h.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to