summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2004-07-31 06:19:23 +0000
committerBruce Momjian2004-07-31 06:19:23 +0000
commitd2b7f511da04207c282a972e1b49f27fe5b4c233 (patch)
treebec9152689af0932d91f3157dc5bd6886aa1418d
parentf951a4677121ece84188176b1e4e16f50b02b8ba (diff)
>OK, if you look at the last few commits to interfaces/libpq/win32.mak,
>you will see changes for pg_config_paths.h and for thread safety. Can >you look at those changes, merge them into bcc.mak. There might be >other changes in there you want to add to bcc.mak too. > > > OK, having no M$ diff, I attach files src\interfaces\libpq\bcc32.mak and src\interfaces\libpq\win32.h Steve Holdoway
-rw-r--r--src/interfaces/libpq/bcc32.mak18
-rw-r--r--src/interfaces/libpq/win32.h1
2 files changed, 18 insertions, 1 deletions
diff --git a/src/interfaces/libpq/bcc32.mak b/src/interfaces/libpq/bcc32.mak
index 07bed5a328f..81aae097d97 100644
--- a/src/interfaces/libpq/bcc32.mak
+++ b/src/interfaces/libpq/bcc32.mak
@@ -68,6 +68,8 @@ LIB32_OBJS= \
"$(INTDIR)\inet_aton.obj" \
"$(INTDIR)\crypt.obj" \
"$(INTDIR)\path.obj" \
+ "$(INTDIR)\noblock.obj" \
+ "$(INTDIR)\pgstrcasecmp.obj" \
"$(INTDIR)\dllist.obj" \
"$(INTDIR)\md5.obj" \
"$(INTDIR)\ip.obj" \
@@ -84,6 +86,7 @@ LIB32_OBJS= \
"$(INTDIR)\wchar.obj" \
"$(INTDIR)\encnames.obj"
+
RSC=brcc32.exe
RSC_PROJ=-l 0x409 -i$(BCB)\include -fo"$(INTDIR)\libpq.res"
@@ -98,7 +101,7 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
# ---------------------------------------------------------------------------
-ALL: "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
+ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
CLEAN :
-@erase "$(INTDIR)\getaddrinfo.obj"
@@ -123,12 +126,24 @@ CLEAN :
-@erase "$(OUTDIR)\win32.obj"
-@erase "$(INTDIR)\wchar.obj"
-@erase "$(INTDIR)\encnames.obj"
+ -@erase "$(INTDIR)\noblock.obj"
+ -@erase "$(INTDIR)\pgstrcasecmp.obj"
-@erase "$(OUTDIR)\libpq.res"
-@erase "$(OUTDIR)\blibpq.lib"
-@erase "$(OUTDIR)\blibpqdll.lib"
-@erase "$(OUTDIR)\blibpq.dll"
-@erase "$(OUTDIR)\blibpq.tds"
+config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
+
+..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
+ copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h
+
+pthread.h: pthread.h.win32
+ copy pthread.h.win32 pthread.h
+
+pg_config_paths.h: win32.mak
+ echo #define SYSCONFDIR "" >pg_config_paths.h
"$(OUTDIR)" :
@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
@@ -152,6 +167,7 @@ CLEAN :
+-")"
!
+
.c.obj:
$(CPP) -o"$(INTDIR)\$&" $(CPP_PROJ) $<
diff --git a/src/interfaces/libpq/win32.h b/src/interfaces/libpq/win32.h
index 06fdfdded07..14f1a7e09e4 100644
--- a/src/interfaces/libpq/win32.h
+++ b/src/interfaces/libpq/win32.h
@@ -8,6 +8,7 @@
#define _timeb timeb
#define _ftime(a) ftime(a)
#define _errno errno
+#define popen(a,b) _popen(a,b)
#else
/* open provided elsewhere */
#define close(a) _close(a)