]> granicus.if.org Git - postgresql/commitdiff
>OK, if you look at the last few commits to interfaces/libpq/win32.mak,
authorBruce Momjian <bruce@momjian.us>
Sat, 31 Jul 2004 06:19:23 +0000 (06:19 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 31 Jul 2004 06:19:23 +0000 (06:19 +0000)
>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

src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/win32.h

index 07bed5a328f5e55038bf5b62dcebd1eb9c663b98..81aae097d9790191bd32fa336799b1e4cab71ee8 100644 (file)
@@ -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) $<
 
index 06fdfdded075ec94fc6ec2826b560213fc3feb77..14f1a7e09e45510f51ae59c875a6492558455814 100644 (file)
@@ -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)