This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libicu: conflict on int32_t definition


2008/8/27 Samuel Thibault:
> I had to disabled libicu usage in brltty because the following doesn't
> compile:
>
> #include <windows.h>
> #include <sys/types.h>
> #include <unicode/uchar.h>
>
> because pwin32.h redefines int32_t, while it is already defined from
> stdint.h...

We need to define U_HAVE_INTTYPES_H, which would pull in #include <inttypes.h>
which would define int32_t in stdint.h.
You can also patch /usr/include/unicode/pwin32.h until I get out a new release.

Add:
#ifdef __CYGWIN__
#define U_HAVE_INTTYPES_H
#endif

at the beginning of the file, below the _MSC_VER check for example.
Please give feedback if this works ok for #include <windows.h>,
I'll prepare an update then.

HTH
-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]