Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
f13cb7e5
Commit
f13cb7e5
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@dothill.com>.
parent
b95ff0c5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/ecpg/include/sqlca.h
+9
-1
9 additions, 1 deletion
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/test/Makefile
+3
-2
3 additions, 2 deletions
src/interfaces/ecpg/test/Makefile
src/makefiles/Makefile.win
+5
-1
5 additions, 1 deletion
src/makefiles/Makefile.win
with
17 additions
and
4 deletions
src/interfaces/ecpg/include/sqlca.h
+
9
−
1
View file @
f13cb7e5
#ifndef POSTGRES_SQLCA_H
#ifndef POSTGRES_SQLCA_H
#define 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
#define SQLERRMC_LEN 70
#ifdef __cplusplus
#ifdef __cplusplus
...
@@ -45,7 +53,7 @@ extern "C"
...
@@ -45,7 +53,7 @@ extern "C"
char
sqlext
[
8
];
char
sqlext
[
8
];
};
};
extern
struct
sqlca
sqlca
;
extern
DLLIMPORT
struct
sqlca
sqlca
;
#ifdef __cplusplus
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/Makefile
+
3
−
2
View file @
f13cb7e5
all
:
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init
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 /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=/usr/local/pgsql/bin/ecpg -I../include
ECPG
=
../preproc/ecpg
-I
../include
ECPG
=
../preproc/ecpg
-I
../include
...
@@ -24,4 +25,4 @@ test_text: test_text.c
...
@@ -24,4 +25,4 @@ test_text: test_text.c
$(
ECPG
)
$?
$(
ECPG
)
$?
clean
:
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
This diff is collapsed.
Click to expand it.
src/makefiles/Makefile.win
+
5
−
1
View file @
f13cb7e5
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.1
0
2001/0
4
/0
4 21:15
:5
6
tgl Exp $
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.1
1
2001/0
5
/0
3 16:07
:5
2
tgl Exp $
LDFLAGS
+=
-g
LDFLAGS
+=
-g
DLLTOOL
=
dlltool
DLLTOOL
=
dlltool
DLLWRAP
=
dllwrap
DLLWRAP
=
dllwrap
...
@@ -23,3 +23,7 @@ CFLAGS_SL =
...
@@ -23,3 +23,7 @@ CFLAGS_SL =
ifeq
($(findstring backend,$(subdir)), backend)
ifeq
($(findstring backend,$(subdir)), backend)
override
CPPFLAGS
+=
-DBUILDING_DLL
=
1
override
CPPFLAGS
+=
-DBUILDING_DLL
=
1
endif
endif
ifeq
($(findstring ecpg/lib,$(subdir)), ecpg/lib)
override
CPPFLAGS
+=
-DBUILDING_DLL
=
1
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment