[Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)
Reinier Olislagers
reinierolislagers at gmail.com
Tue Nov 20 10:18:40 CET 2012
On 19-11-2012 20:52, Vincent Snijders wrote:
>
>
>
> 2012/10/31 Juha Manninen <juha.manninen62 at gmail.com
> <mailto:juha.manninen62 at gmail.com>>
>
> On Wed, Oct 31, 2012 at 10:49 PM, Maxim Ganetsky <ganmax at narod.ru
> <mailto:ganmax at narod.ru>> wrote:
> > It seems that this revision isn't yet in 2.6.x. BTW, won't it
> break Lazarus
> > compilation with FPC 2.6.0?
>
> I have FPC 2.6.0 and it compiles OK.
>
> Somebody reported that (when compiling with fpc 2.6.0), there no
> postgresql connection anymore for win32.
>
That somebody may try the following patch (untested), as it appears the
current version disables the postgresql connector if the compiler is
older than 2.6.1.
-------------- next part --------------
Index: components/sqldb/registersqldb.pas
===================================================================
--- components/sqldb/registersqldb.pas (revision 39290)
+++ components/sqldb/registersqldb.pas (working copy)
@@ -18,13 +18,19 @@
unit registersqldb;
{$mode objfpc}{$H+}
-{$IFNDEF win64}
+{$IFDEF win64}
+{$IF FPC_FULLVERSION>= 20601}
+{$DEFINE HASPQCONNECTION}
+{$ENDIF FPC_FULLVERSION>= 20601}
+{$ELSE}
{$DEFINE HASMYSQL4CONNECTION}
{$DEFINE HASORACLECONNECTION}
+// On non-Win64, PostgreSQL connection should always be available,
+// regardless of FPC version
+{$DEFINE HASPQCONNECTION}
{$ENDIF}
{$IF FPC_FULLVERSION>= 20601}
-{$DEFINE HASPQCONNECTION}
{$DEFINE HASMYSQL55CONNECTION}
{$IF DEFINED(BEOS) OR DEFINED(HAIKU) OR DEFINED(LINUX) OR DEFINED(FREEBSD) OR DEFINED (NETBSD) OR DEFINED(OPENBSD) OR DEFINED(WIN32) OR DEFINED(WIN64)}
// MS SQL Server and Sybase ASE connectors were introduced in the FPC 2.7 development branch,
More information about the Lazarus
mailing list