Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2461) bool type already exists
Home

[Freeciv-Dev] Re: (PR#2461) bool type already exists

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2461) bool type already exists
From: "Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 1 Dec 2002 10:40:28 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, 1 Dec 2002, Raimar Falke via RT wrote:
> Please try the attached patch.

Not good enough for BeOS, since it seems to read its bool typedef from
<posix/be_prim.h> for its posix layer. Including stdbool.h gives an
error, just as if typedef'ing it ourselves.

So we may need to put

#if __BEOS__
#include <posix/be_prim.h>
#else
... everything else ...
#endif

in there as well.

+#undef__bool_true_false_are_defined
+#define bool fc_bool
+#define __bool_true_false_are_defined 1
+typedef unsigned int fc_bool;

What's the point with these?

+#define TRUE true
+#define FALSE false

Please undefine first to be on the safe side.

  - Per




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