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
945d0b4b
Commit
945d0b4b
authored
Jan 11, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow Borland CC to compile libpq and psql.
L Bayuk
parent
7f1bc239
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
7 deletions
+36
-7
src/bin/psql/bcc32.mak
src/bin/psql/bcc32.mak
+32
-3
src/include/c.h
src/include/c.h
+2
-2
src/include/port.h
src/include/port.h
+2
-2
No files found.
src/bin/psql/bcc32.mak
View file @
945d0b4b
...
...
@@ -60,7 +60,7 @@ INTDIR=.\Release
!
endif
REFDOCDIR
=
../../../doc/src/sgml/ref
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nterfaces
\l
ibpq
;
..
\.
.
\i
nclude
\p
ort
\w
in32
\
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nterfaces
\l
ibpq
;
..
\.
.
\i
nclude
\p
ort
\w
in32
;
..
\.
.
\i
nclude
\p
ort
\w
in32_msvc
;
..
\p
g_dump
;
..
\.
.
\b
ackend
\
-c
-D
$(USERDEFINES)
-DFRONTEND
-n
"
$(INTDIR)
"
-tWM
-tWC
-q
-5
-a8
-pc
-X
-w-use
\
-w-par
-w-pia
-w-csu
-w-aus
-w-ccc
...
...
@@ -98,6 +98,7 @@ CLEAN :
-
@erase
"
$(INTDIR)
\m
bprint.obj"
-
@erase
"
$(INTDIR)
\p
rint.obj"
-
@erase
"
$(INTDIR)
\p
rompt.obj"
-
@erase
"
$(INTDIR)
\p
sqlscan.obj"
-
@erase
"
$(INTDIR)
\s
tartup.obj"
-
@erase
"
$(INTDIR)
\s
tringutils.obj"
-
@erase
"
$(INTDIR)
\t
ab-complete.obj"
...
...
@@ -105,9 +106,13 @@ CLEAN :
-
@erase
"
$(INTDIR)
\e
xec.obj"
-
@erase
"
$(INTDIR)
\g
etopt.obj"
-
@erase
"
$(INTDIR)
\g
etopt_long.obj"
-
@erase
"
$(INTDIR)
\s
nprintf.obj"
-
@erase
"
$(INTDIR)
\p
ath.obj"
-
@erase
"
$(INTDIR)
\s
trlcpy.obj"
-
@erase
"
$(INTDIR)
\p
gstrcasecmp.obj"
-
@erase
"
$(INTDIR)
\s
prompt.obj"
-
@erase
"
$(INTDIR)
\d
umputils.obj"
-
@erase
"
$(INTDIR)
\k
eywords.obj"
-
@erase
"
$(INTDIR)
\p
sql.ilc"
-
@erase
"
$(INTDIR)
\p
sql.ild"
-
@erase
"
$(INTDIR)
\p
sql.tds"
...
...
@@ -138,9 +143,13 @@ LINK32_OBJS= \
"
$(INTDIR)
\e
xec.obj"
\
"
$(INTDIR)
\g
etopt.obj"
\
"
$(INTDIR)
\g
etopt_long.obj"
\
"
$(INTDIR)
\s
nprintf.obj"
\
"
$(INTDIR)
\p
ath.obj"
\
"
$(INTDIR)
\s
trlcpy.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\s
prompt.obj"
"
$(INTDIR)
\s
prompt.obj"
\
"
$(INTDIR)
\d
umputils.obj"
\
"
$(INTDIR)
\k
eywords.obj"
!IFDEF
DEBUG
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\D
ebug
\b
libpqddll.lib"
...
...
@@ -149,7 +158,7 @@ LINK32_OBJS = $(LINK32_OBJS) "..\..\interfaces\libpq\Release\blibpqdll.lib"
!ENDIF
# Have to use \# so # isn't treated as a comment, but MSVC doesn't like this
"..\..\port\pg_config_paths.h"
:
win
32.mak
"..\..\port\pg_config_paths.h"
:
bcc
32.mak
echo
\
#define PGBINDIR "" >$@
echo
\
#define PGSHAREDIR "" >>$@
echo
\
#define SYSCONFDIR "" >>$@
...
...
@@ -188,11 +197,21 @@ LINK32_OBJS = $(LINK32_OBJS) "..\..\interfaces\libpq\Release\blibpqdll.lib"
$(CPP_PROJ)
..\..\port\getopt_long.c
<<
"$(INTDIR)\snprintf.obj"
:
"$(INTDIR)"
..\..\port\snprintf.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\snprintf.c
<<
"$(INTDIR)\path.obj"
:
"$(INTDIR)"
..\..\port\path.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\path.c
<<
"$(INTDIR)\strlcpy.obj"
:
"$(INTDIR)"
..\..\port\strlcpy.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\strlcpy.c
<<
"$(INTDIR)\pgstrcasecmp.obj"
:
..\..\port\pgstrcasecmp.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\pgstrcasecmp.c
...
...
@@ -203,6 +222,16 @@ LINK32_OBJS = $(LINK32_OBJS) "..\..\interfaces\libpq\Release\blibpqdll.lib"
$(CPP_PROJ)
..\..\port\sprompt.c
<<
"$(INTDIR)\dumputils.obj"
:
"$(INTDIR)"
..\pg_dump\dumputils.c
$(CPP)
@<<
$(CPP_PROJ)
..\pg_dump\dumputils.c
<<
"$(INTDIR)\keywords.obj"
:
"$(INTDIR)"
..\..\backend\parser\keywords.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\backend\parser\keywords.c
<<
"sql_help.h"
:
create_help.pl
$(PERL)
create_help.pl
$(REFDOCDIR)
$@
...
...
src/include/c.h
View file @
945d0b4b
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/c.h,v 1.21
5 2007/01/05 22:19:50
momjian Exp $
* $PostgreSQL: pgsql/src/include/c.h,v 1.21
6 2007/01/11 02:39:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -59,7 +59,7 @@
#include "postgres_ext.h"
#include "pg_trace.h"
#if
defined(__BORLANDC__) || (_MSC_VER >= 1400)
#if
_MSC_VER >= 1400
#define errcode __msvc_errcode
#include <crtdefs.h>
#undef errcode
...
...
src/include/port.h
View file @
945d0b4b
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.10
7 2007/01/05 22:19:50
momjian Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.10
8 2007/01/11 02:39:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -343,7 +343,7 @@ extern char *strdup(const char *str);
extern
size_t
strlcpy
(
char
*
dst
,
const
char
*
src
,
size_t
siz
);
#endif
#if
ndef HAVE_RANDOM
#if
!defined(HAVE_RANDOM) && !defined(__BORLANDC__)
extern
long
random
(
void
);
#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