you must define a format string
that matches your machine's size_t.
try something like this:
#if arch1
#define SIZE_T_FORMAT "%lu"
#elif arch2
#define SIZE_T_FORMAT "%u"
#else
#error...
#endif
> -----Original Message-----
> From: Alexander Gottwald
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 20:27
> To: [EMAIL PROTECTED]
> Subject: [Xpert]ulong warning fixes
>
>
> Hi,
>
> some recent warning fixes break cygwin compiling.
>
> e.g. in lib/Xmu/StrToCurs.c:172
> a printf("%lu", sizeof(...)) was changed to
> printf("%lu", (ulong)sizeof(...))
>
> and in lib/Xmu/WidgetNode.c
>
> But ulong is not defined on cygwin. What is the correct fix for this.
> Change the printf type to %u (which might break on 64 bit
> architectures)
> or using (unsigned long) or defining ulong for cygwin where
> it's needed?
>
> bye
> ago
> --
> [EMAIL PROTECTED]
> http://www.gotti.org ICQ: 126018723
>
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert
>
>
