Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4051bce2
Commit
4051bce2
authored
Jul 11, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Libpq++ fixes for Win32 compile.
Christian Ullrich
parent
d674b483
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
12 deletions
+23
-12
src/include/c.h
src/include/c.h
+8
-2
src/include/config.h.win32
src/include/config.h.win32
+3
-0
src/interfaces/libpq++/pgconnection.h
src/interfaces/libpq++/pgconnection.h
+2
-2
src/interfaces/libpq++/pgcursordb.h
src/interfaces/libpq++/pgcursordb.h
+2
-2
src/interfaces/libpq++/pgdatabase.h
src/interfaces/libpq++/pgdatabase.h
+2
-2
src/interfaces/libpq++/pglobject.h
src/interfaces/libpq++/pglobject.h
+2
-2
src/interfaces/libpq++/pgtransdb.h
src/interfaces/libpq++/pgtransdb.h
+2
-2
src/win32.mak
src/win32.mak
+2
-0
No files found.
src/include/c.h
View file @
4051bce2
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.9
6 2001/07/03 20:21:50 petere
Exp $
* $Id: c.h,v 1.9
7 2001/07/11 22:12:43 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -615,7 +615,13 @@ typedef NameData *Name;
#else
/* not BUILDING_DLL */
#define DLLIMPORT __declspec (dllimport)
#endif
#else
/* not CYGWIN */
#elif defined(WIN32) && defined(_MSC_VER)
/* not CYGWIN */
#if defined(_DLL)
#define DLLIMPORT __declspec (dllexport)
#else
/* not _DLL */
#define DLLIMPORT __declspec (dllimport)
#endif
#else
/* not CYGWIN, not MSVC */
#define DLLIMPORT
#endif
...
...
src/include/config.h.win32
View file @
4051bce2
...
...
@@ -20,3 +20,6 @@
#define HAVE_ATEXIT
#define HAVE_MEMMOVE
#define HAVE_CXX_STRING_HEADER
#define HAVE_NAMESPACE_STD
src/interfaces/libpq++/pgconnection.h
View file @
4051bce2
...
...
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pgconnection.h,v 1.1
1 2001/05/09 17:29:10
momjian Exp $
* $Id: pgconnection.h,v 1.1
2 2001/07/11 22:12:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -57,7 +57,7 @@ extern "C" {
// This class contains all the information about the connection
// to the backend process. All the database classes should be
// derived from this class to obtain the connection interface.
class
PgConnection
{
class
DLLIMPORT
PgConnection
{
protected:
PGconn
*
pgConn
;
// Connection Structure
PGresult
*
pgResult
;
// Current Query Result
...
...
src/interfaces/libpq++/pgcursordb.h
View file @
4051bce2
...
...
@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pgcursordb.h,v 1.
7 2001/05/09 17:29:10
momjian Exp $
* $Id: pgcursordb.h,v 1.
8 2001/07/11 22:12:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -42,7 +42,7 @@
// manipulates data through it. The interface will introduce some
// ease of use through the methods that will allow cursor specific
// operations, like fetch, forward, etc.
class
PgCursor
:
public
PgTransaction
{
class
DLLIMPORT
PgCursor
:
public
PgTransaction
{
public:
PgCursor
(
const
char
*
conninfo
,
const
char
*
cursor
);
// use reasonable & environment defaults
// connect to the database with given environment and database name
...
...
src/interfaces/libpq++/pgdatabase.h
View file @
4051bce2
...
...
@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pgdatabase.h,v 1.1
1 2001/05/09 17:46:11
momjian Exp $
* $Id: pgdatabase.h,v 1.1
2 2001/07/11 22:12:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -34,7 +34,7 @@
// This is the basic database access class. Its interface should
// be used only after a query has been sent to the backend and
// results are being received.
class
PgDatabase
:
public
PgConnection
{
class
DLLIMPORT
PgDatabase
:
public
PgConnection
{
public:
// connect to the database with conninfo
explicit
PgDatabase
(
const
char
*
conninfo
)
:
PgConnection
(
conninfo
)
{}
...
...
src/interfaces/libpq++/pglobject.h
View file @
4051bce2
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pglobject.h,v 1.
7 2001/05/09 17:29:10
momjian Exp $
* $Id: pglobject.h,v 1.
8 2001/07/11 22:12:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -35,7 +35,7 @@
// PgLargeObject - a class for accessing Large Object in a database
//
// ****************************************************************
class
PgLargeObject
:
public
PgConnection
{
class
DLLIMPORT
PgLargeObject
:
public
PgConnection
{
private:
int
pgFd
;
Oid
pgObject
;
...
...
src/interfaces/libpq++/pgtransdb.h
View file @
4051bce2
...
...
@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pgtransdb.h,v 1.
7 2001/05/09 17:29:10
momjian Exp $
* $Id: pgtransdb.h,v 1.
8 2001/07/11 22:12:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -34,7 +34,7 @@
// This is the database access class that keeps an open
// transaction block during its lifetime. The block is ENDed when
// the object is destroyed.
class
PgTransaction
:
public
PgDatabase
{
class
DLLIMPORT
PgTransaction
:
public
PgDatabase
{
public:
explicit
PgTransaction
(
const
char
*
conninfo
);
// use reasonable & environment defaults
// connect to the database with given environment and database name
...
...
src/win32.mak
View file @
4051bce2
...
...
@@ -20,6 +20,8 @@ ALL:
cd
..
cd
interfaces\libpq
nmake
/f
win32.mak
$(MAKEMACRO)
cd
..\libpq++
nmake
/f
win32.mak
$(MAKEMACRO)
cd
..\..\bin\psql
nmake
/f
win32.mak
$(MAKEMACRO)
cd
..\..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment