Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
Date
Msg-id 877er2nr8c.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT  (Michael Meskes <meskes@postgresql.org>)
Responses Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
List pgsql-bugs
>>>>> "Michael" == Michael Meskes <meskes@postgresql.org> writes:

 Michael> ECPG does not use pg_config.h, try making your change in
 Michael> ecpg_config.h instead.

Aha.

Solution.pm has this:

    if (IsNewer(
            'src/interfaces/ecpg/include/ecpg_config.h',
            'src/interfaces/ecpg/include/ecpg_config.h.in'))
    {
        print "Generating ecpg_config.h...\n";
        open(my $o, '>', 'src/interfaces/ecpg/include/ecpg_config.h')
          || confess "Could not open ecpg_config.h";
        print $o <<EOF;
#if (_MSC_VER > 1200)
#define HAVE_LONG_LONG_INT_64 1
#define ENABLE_THREAD_SAFETY 1
EOF
        print $o "#endif\n";
        close($o);
    }

from which HAVE_LONG_LONG_INT seems to be suspiciously missing?

-- 
Andrew (irc:RhodiumToad)


pgsql-bugs by date:

Previous
From: Michael Meskes
Date:
Subject: Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
Next
From: Tom Lane
Date:
Subject: Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT