Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: jallen(at)americansavingslife(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
Date: 2018-02-24 19:09:15
Message-ID: 877er2nr8c.fsf@news-spur.riddles.org.uk
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "Michael" == Michael Meskes <meskes(at)postgresql(dot)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)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-02-24 19:21:23 Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT
Previous Message Michael Meskes 2018-02-24 14:43:06 Re: BUG #15080: ecpg on windows doesn't define HAVE_LONG_LONG_INT