This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: again: sizeof(wchar_t)
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: llewelly at xmission dot com
- Cc: "Artem B. Bityuckiy" <abityuckiy at yandex dot ru>, gcc-help at gcc dot gnu dot org
- Date: Sun, 25 Apr 2004 22:47:16 +0200
- Subject: Re: again: sizeof(wchar_t)
- References: <408A31A3.1030508@yandex.ru><s3rd65wc5b0.fsf@xmission.xmission.com>
llewelly@xmission.com writes:
> The normal solution is to make configure compile run a program which
> outputs sizeof(wchar_t), and then substitutes that value into your
> header files. I didn't suggest this before because somehow I had
> the impression you were using a cross-compiler (which means the
> configure-time program which determines sizeof(wchar_t) must be
> downloaded to your target and its output somehow uploaded back,
> something which is not always feasible.)
autoconf has macros which can determine compile-time constants even
when cross-compiling.
--
Current mail filters: many dial-up/DSL/cable modem hosts, and the
following domains: atlas.cz, bigpond.com, di-ve.com, netscape.net,
postino.it, tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr.