Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Quick #error question
Home

[Freeciv-Dev] Re: Quick #error question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Justin Moore <justin@xxxxxxxxxxx>
Cc: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Quick #error question
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Fri, 03 Aug 2001 01:04:09 +0200

On Thu, 2 Aug 2001, justin@xxxxxxxxxxx wrote:
> 
> Quick question,
>    In intl/gettext.h, line 64 why isn't #error used?
> 
> ---61,67---
> #  if ULONG_MAX == UINT_MAX_32_BITS
> typedef unsigned long nls_uint32;
> #  else
>   /* The following line is intended to throw an error.  Using #error
>      is not portable enough.  */ "Cannot determine unsigned 32-bit
>      data type."
> #  endif
> ---
> 
>    But it's used in these other files:lines,
> ./common/fcintl.h:18
> ./common/speclist.h:60
> ./common/speclist_c.h:28
> ./common/version.h:18
> 
>    Out of curiousity, I was running freeciv through lclint and the
> preprocessor kept barfing in gettext.h.

Those files are part of GNU gettext, which is rather more portable
than Freeciv.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
It's OKAY --- I'm an INTELLECTUAL, too.


[Prev in Thread] Current Thread [Next in Thread]