Ethereal-dev: Re: [ethereal-dev] Win32 DLL Plugin code

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 3 Feb 2000 11:36:45 -0800
> --------------------------------------------------------------------------
> +#ifdef WIN32 
> +	unsigned __int64	lnglng;
> +#else
> +	unsigned long long int	lnglng;
> +#endif
> --------------------------------------------------------------------------
> 
> 
> Guy was right; MSVC 6.0 has __int64

Another alternative, though, might be to do

	#ifdef G_HAVE_GINT64
	guint64 lnglng;
	#else
	#error "Sorry, this won't compile without 64-bit integer support"
	#endif

or something such as that, *if* the Win32 port of GLib defines "gint64"
and "guint64" appropriately.

(Note that one problem is that other compilers on Win32 platforms -
e.g., GCC - may or may not have "__int64", but they may have other ones,
e.g. "long long int" in GCC.)