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
f13cb7e5
Commit
f13cb7e5
authored
May 03, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@dothill.com>.
parent
b95ff0c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlca.h
+9
-1
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/Makefile
+3
-2
src/makefiles/Makefile.win
src/makefiles/Makefile.win
+5
-1
No files found.
src/interfaces/ecpg/include/sqlca.h
View file @
f13cb7e5
#ifndef POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H
#ifndef DLLIMPORT
#ifdef __CYGWIN__
#define DLLIMPORT __declspec (dllimport)
#else
#define DLLIMPORT
#endif
/* __CYGWIN__ */
#endif
/* DLLIMPORT */
#define SQLERRMC_LEN 70
#ifdef __cplusplus
...
...
@@ -45,7 +53,7 @@ extern "C"
char
sqlext
[
8
];
};
extern
struct
sqlca
sqlca
;
extern
DLLIMPORT
struct
sqlca
sqlca
;
#ifdef __cplusplus
...
...
src/interfaces/ecpg/test/Makefile
View file @
f13cb7e5
all
:
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq
LDFLAGS
=
-g
-I
../include
-I
/usr/include/postgresql
-L
/usr/lib
-lecpg
-lpq
LDFLAGS
=
-g
-I
../include
LDLIBS
=
-L
../lib
-lecpg
-L
../../libpq
-lpq
#ECPG=/usr/local/pgsql/bin/ecpg -I../include
ECPG
=
../preproc/ecpg
-I
../include
...
...
@@ -24,4 +25,4 @@ test_text: test_text.c
$(ECPG)
$?
clean
:
rm
-f
test1 test2 test3 test4 perftest
*
.c log dyntest dyntest2 test_notice test_code100 test_init test_text
rm
-f
test1 test2 test3 test4 perftest
*
.c log dyntest dyntest2 test_notice test_code100 test_init test_text
*
.exe
src/makefiles/Makefile.win
View file @
f13cb7e5
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.1
0 2001/04/04 21:15:56
tgl Exp $
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.1
1 2001/05/03 16:07:52
tgl Exp $
LDFLAGS
+=
-g
DLLTOOL
=
dlltool
DLLWRAP
=
dllwrap
...
...
@@ -23,3 +23,7 @@ CFLAGS_SL =
ifeq
($(findstring backend,$(subdir)), backend)
override
CPPFLAGS
+=
-DBUILDING_DLL
=
1
endif
ifeq
($(findstring ecpg/lib,$(subdir)), ecpg/lib)
override
CPPFLAGS
+=
-DBUILDING_DLL
=
1
endif
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