File tree 8 files changed +23
-12
lines changed
8 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 12
12
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
13
13
* Portions Copyright (c) 1994, Regents of the University of California
14
14
*
15
- * $Id: c.h,v 1.96 2001/07/03 20:21:50 petere Exp $
15
+ * $Id: c.h,v 1.97 2001/07/11 22:12:43 momjian Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
@@ -615,7 +615,13 @@ typedef NameData *Name;
615
615
#else /* not BUILDING_DLL */
616
616
#define DLLIMPORT __declspec (dllimport)
617
617
#endif
618
- #else /* not CYGWIN */
618
+ #elif defined(WIN32 ) && defined(_MSC_VER ) /* not CYGWIN */
619
+ #if defined(_DLL )
620
+ #define DLLIMPORT __declspec (dllexport)
621
+ #else /* not _DLL */
622
+ #define DLLIMPORT __declspec (dllimport)
623
+ #endif
624
+ #else /* not CYGWIN, not MSVC */
619
625
#define DLLIMPORT
620
626
#endif
621
627
Original file line number Diff line number Diff line change 20
20
21
21
#define HAVE_ATEXIT
22
22
#define HAVE_MEMMOVE
23
+
24
+ #define HAVE_CXX_STRING_HEADER
25
+ #define HAVE_NAMESPACE_STD
Original file line number Diff line number Diff line change 13
13
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
14
14
* Portions Copyright (c) 1994, Regents of the University of California
15
15
*
16
- * $Id: pgconnection.h,v 1.11 2001/05/09 17:29:10 momjian Exp $
16
+ * $Id: pgconnection.h,v 1.12 2001/07/11 22:12:43 momjian Exp $
17
17
*
18
18
*-------------------------------------------------------------------------
19
19
*/
@@ -57,7 +57,7 @@ extern "C" {
57
57
// This class contains all the information about the connection
58
58
// to the backend process. All the database classes should be
59
59
// derived from this class to obtain the connection interface.
60
- class PgConnection {
60
+ class DLLIMPORT PgConnection {
61
61
protected:
62
62
PGconn* pgConn; // Connection Structure
63
63
PGresult* pgResult; // Current Query Result
Original file line number Diff line number Diff line change 14
14
* Portions Copyright (c) 1994, Regents of the University of California
15
15
*
16
16
*
17
- * $Id: pgcursordb.h,v 1.7 2001/05/09 17:29:10 momjian Exp $
17
+ * $Id: pgcursordb.h,v 1.8 2001/07/11 22:12:43 momjian Exp $
18
18
*
19
19
*-------------------------------------------------------------------------
20
20
*/
42
42
// manipulates data through it. The interface will introduce some
43
43
// ease of use through the methods that will allow cursor specific
44
44
// operations, like fetch, forward, etc.
45
- class PgCursor : public PgTransaction {
45
+ class DLLIMPORT PgCursor : public PgTransaction {
46
46
public:
47
47
PgCursor (const char * conninfo, const char * cursor); // use reasonable & environment defaults
48
48
// connect to the database with given environment and database name
Original file line number Diff line number Diff line change 14
14
* Portions Copyright (c) 1994, Regents of the University of California
15
15
*
16
16
*
17
- * $Id: pgdatabase.h,v 1.11 2001/05/09 17:46:11 momjian Exp $
17
+ * $Id: pgdatabase.h,v 1.12 2001/07/11 22:12:43 momjian Exp $
18
18
*
19
19
*-------------------------------------------------------------------------
20
20
*/
34
34
// This is the basic database access class. Its interface should
35
35
// be used only after a query has been sent to the backend and
36
36
// results are being received.
37
- class PgDatabase : public PgConnection {
37
+ class DLLIMPORT PgDatabase : public PgConnection {
38
38
public:
39
39
// connect to the database with conninfo
40
40
explicit PgDatabase (const char * conninfo) : PgConnection(conninfo) {}
Original file line number Diff line number Diff line change 11
11
* Portions Copyright (c) 1994, Regents of the University of California
12
12
*
13
13
*
14
- * $Id: pglobject.h,v 1.7 2001/05/09 17:29:10 momjian Exp $
14
+ * $Id: pglobject.h,v 1.8 2001/07/11 22:12:43 momjian Exp $
15
15
*
16
16
*-------------------------------------------------------------------------
17
17
*/
35
35
// PgLargeObject - a class for accessing Large Object in a database
36
36
//
37
37
// ****************************************************************
38
- class PgLargeObject : public PgConnection {
38
+ class DLLIMPORT PgLargeObject : public PgConnection {
39
39
private:
40
40
int pgFd;
41
41
Oid pgObject;
Original file line number Diff line number Diff line change 14
14
* Portions Copyright (c) 1994, Regents of the University of California
15
15
*
16
16
*
17
- * $Id: pgtransdb.h,v 1.7 2001/05/09 17:29:10 momjian Exp $
17
+ * $Id: pgtransdb.h,v 1.8 2001/07/11 22:12:43 momjian Exp $
18
18
*
19
19
*-------------------------------------------------------------------------
20
20
*/
34
34
// This is the database access class that keeps an open
35
35
// transaction block during its lifetime. The block is ENDed when
36
36
// the object is destroyed.
37
- class PgTransaction : public PgDatabase {
37
+ class DLLIMPORT PgTransaction : public PgDatabase {
38
38
public:
39
39
explicit PgTransaction (const char * conninfo); // use reasonable & environment defaults
40
40
// connect to the database with given environment and database name
Original file line number Diff line number Diff line change 20
20
cd ..
21
21
cd interfaces\libpq
22
22
nmake /f win32.mak $(MAKEMACRO)
23
+ cd ..\libpq++
24
+ nmake /f win32.mak $(MAKEMACRO)
23
25
cd ..\..\bin\psql
24
26
nmake /f win32.mak $(MAKEMACRO)
25
27
cd ..\..
You can’t perform that action at this time.
0 commit comments