Ethereal-dev: Re: [Ethereal-dev] Errors in packet-windows-common.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Guy Harris" <gharris@xxxxxxxxx>
Date: Wed, 18 Aug 2004 14:21:09 -0700 (PDT)
Guy Harris said:
> wxWindows (or, at least, the version I found) has macros
>
> 	#define wxMakeLongLong(x, s)	x ## s
> 	#define wxMakeLongLong2(x, s)	wxMakeLongLong(x, s)
> 	#define wxLL(x)			wxMakeLongLong2(x, wxLongLongSuffix)
>
> where wxLongLongSuffix is defined as ll on compilers with "long long"
> and as i64 on MSVC++ and Borland C.
>
> We should probably do something similar.

GLib 2.4[.x], at least, defines

    G_GINT64_CONSTANT(), which takes a constant and appends what I presume
is the appropriate suffix;

    G_GINT64_MODIFIER, which is presumably the appropriate modifier for
format strings.

I don't know whether GLib 1.2[.x], or earlier versions of GLib 2.x, define
them.