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
a5ec2ec7
Commit
a5ec2ec7
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.
Backpatch to 8.2.X. L Bayuk
parent
945d0b4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
src/include/port/win32.h
src/include/port/win32.h
+9
-1
src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/bcc32.mak
+16
-8
src/interfaces/libpq/win32.mak
src/interfaces/libpq/win32.mak
+0
-2
No files found.
src/include/port/win32.h
View file @
a5ec2ec7
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.6
4 2007/01/02 21:25:50
momjian Exp $ */
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.6
5 2007/01/11 02:42:31
momjian Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
...
...
@@ -17,7 +17,9 @@
#include <signal.h>
#include <errno.h>
#include <direct.h>
#ifndef __BORLANDC__
#include <sys/utime.h>
/* for non-unicode version */
#endif
#undef near
/* Must be here to avoid conflicting with prototype in windows.h */
...
...
@@ -149,8 +151,10 @@ int semop(int semId, struct sembuf * sops, int flag);
#define SIGTTIN 21
#define SIGTTOU 22
/* Same as SIGABRT -- no problem, I hope */
#define SIGWINCH 28
#ifndef __BORLANDC__
#define SIGUSR1 30
#define SIGUSR2 31
#endif
struct
timezone
{
...
...
@@ -259,8 +263,10 @@ extern void _dosmaperr(unsigned long);
/* Things that exist in MingW headers, but need to be added to MSVC */
#ifdef WIN32_ONLY_COMPILER
#ifndef __BORLANDC__
typedef
long
ssize_t
;
typedef
unsigned
short
mode_t
;
#endif
/*
* Certain "standard edition" versions of MSVC throw a warning
...
...
@@ -271,6 +277,7 @@ typedef unsigned short mode_t;
#define inline __inline
#define __inline__ __inline
#ifndef __BORLANDC__
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
#define _S_IXUSR _S_IEXEC
#define _S_IWUSR _S_IWRITE
...
...
@@ -280,6 +287,7 @@ typedef unsigned short mode_t;
#define S_IXUSR _S_IXUSR
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#define F_OK 0
#define W_OK 2
...
...
src/interfaces/libpq/bcc32.mak
View file @
a5ec2ec7
...
...
@@ -76,7 +76,6 @@ ALL : config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
CLEAN
:
-
@erase
"
$(INTDIR)
\g
etaddrinfo.obj"
-
@erase
"
$(INTDIR)
\p
gstrcasecmp.obj"
-
@erase
"
$(INTDIR)
\s
trlcpy.obj"
-
@erase
"
$(INTDIR)
\t
hread.obj"
-
@erase
"
$(INTDIR)
\i
net_aton.obj"
-
@erase
"
$(INTDIR)
\c
rypt.obj"
...
...
@@ -99,6 +98,8 @@ CLEAN :
-
@erase
"
$(INTDIR)
\w
char.obj"
-
@erase
"
$(INTDIR)
\e
ncnames.obj"
-
@erase
"
$(INTDIR)
\p
thread-win32.obj"
-
@erase
"
$(INTDIR)
\s
nprintf.obj"
-
@erase
"
$(INTDIR)
\s
trlcpy.obj"
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME).lib"
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME)dll.lib"
-
@erase
"
$(OUTDIR)
\l
ibpq.res"
...
...
@@ -113,7 +114,6 @@ LIB32_OBJS= \
"
$(INTDIR)
\w
in32.obj"
\
"
$(INTDIR)
\g
etaddrinfo.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\s
trlcpy.obj"
\
"
$(INTDIR)
\t
hread.obj"
\
"
$(INTDIR)
\i
net_aton.obj"
\
"
$(INTDIR)
\c
rypt.obj"
\
...
...
@@ -133,6 +133,8 @@ LIB32_OBJS= \
"
$(INTDIR)
\p
qsignal.obj"
\
"
$(INTDIR)
\w
char.obj"
\
"
$(INTDIR)
\e
ncnames.obj"
\
"
$(INTDIR)
\s
nprintf.obj"
\
"
$(INTDIR)
\s
trlcpy.obj"
\
"
$(INTDIR)
\p
thread-win32.obj"
...
...
@@ -162,7 +164,7 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
$(LINK32_FLAGS)
+
c0d32.obj
$(LINK32_OBJS),
+
$@,,
+
"$(OUTDIR)\blibpq.lib"
import32.lib
cw32mt
i
.lib,
+
"$(OUTDIR)\blibpq.lib"
import32.lib
cw32mt.lib,
+
blibpqdll.def,
"$(INTDIR)\libpq.res"
<<
implib
-w
"$(OUTDIR)\blibpqdll.lib"
blibpqdll.def
$@
...
...
@@ -187,11 +189,6 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
$(CPP_PROJ)
..\..\port\pgstrcasecmp.c
<<
"$(INTDIR)\strlcpy.obj"
:
..\..\port\strlcpy.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\strlcpy.c
<<
"$(INTDIR)\thread.obj"
:
..\..\port\thread.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\thread.c
...
...
@@ -233,5 +230,16 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\encnames.c
<<
"$(INTDIR)\snprintf.obj"
:
..\..\port\snprintf.c
$(CPP)
@<<
$(CPP_PROJ)
/I
"."
..\..\port\snprintf.c
<<
"$(INTDIR)\strlcpy.obj"
:
..\..\port\strlcpy.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\strlcpy.c
<<
.c.obj
:
$(CPP)
$(CPP_PROJ)
$<
src/interfaces/libpq/win32.mak
View file @
a5ec2ec7
...
...
@@ -74,8 +74,6 @@ CLEAN :
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME)dll.lib"
-
@erase
"
$(OUTDIR)
\l
ibpq.res"
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME).dll"
# -@erase "*.pch"
# -@erase "$(OUTDIR)\libpq.pch"
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME)dll.exp"
-
@erase
"
$(INTDIR)
\p
g_config_paths.h"
...
...
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