gcc 2.7.x.x supports the C++ builtin 'bool' type. Therefore, the
C++ API doesn't compile as is.

If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

*** src/include/c.h.or Thu Dec 26 18:01:57 1996
--- src/include/c.h Fri Apr 11 00:20:00 1997
***************
*** 60,66 ****
--- 60,68 ----
*/
#define false ((char) 0)
#define true ((char) 1)
+ #ifndef __cplusplus
typedef char bool;
+ #endif /* not C++ */
typedef bool *BoolPtr;

#ifndef TRUE
I recommend we apply this. This is the fix I recommended earlier and no
one using C++ commented if it was good or bad.

------------------------------

Search Discussions

  • Leo Shuster at Apr 11, 1997 at 8:27 pm

    I recommend we apply this. This is the fix I recommended earlier and no
    one using C++ commented if it was good or bad.
    I have not seen this, but it should be OK. Just to set the account
    straight, I am using gcc 2.7.2 (with built-in bool support) and had
    no problems compiling Postgres.

    Leo

    ------------------------------
  • The Hermit Hacker at Apr 11, 1997 at 9:03 pm

    On Fri, 11 Apr 1997, Bruce Momjian wrote:

    gcc 2.7.x.x supports the C++ builtin 'bool' type. Therefore, the
    C++ API doesn't compile as is.

    If you know how this problem might be fixed, list the solution below:
    ---------------------------------------------------------------------

    *** src/include/c.h.or Thu Dec 26 18:01:57 1996
    --- src/include/c.h Fri Apr 11 00:20:00 1997
    ***************
    *** 60,66 ****
    --- 60,68 ----
    */
    #define false ((char) 0)
    #define true ((char) 1)
    + #ifndef __cplusplus
    typedef char bool;
    + #endif /* not C++ */
    typedef bool *BoolPtr;

    #ifndef TRUE
    I recommend we apply this. This is the fix I recommended earlier and no
    one using C++ commented if it was good or bad.
    Will commit it in a bit...my link to my host seems to be having
    network connections again, so can't commit :(

    Need new provider for home computer...

    Marc G. Fournier
    Systems Administrator @ hub.org
    primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

    ------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedApr 11, '97 at 7:09p
activeApr 11, '97 at 9:03p
posts3
users3
websitepostgresql.org...
irc#postgresql

People

Translate

site design / logo © 2021 Grokbase