Skip to content

Commit 8e4f407

Browse files
committed
Un-break MSVC build, per Andrew Dunstan.
1 parent ab3bb9c commit 8e4f407

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.299 2005/01/06 21:41:44 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.300 2005/01/10 00:19:43 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -35,7 +35,14 @@
3535

3636
#ifdef WIN32
3737
#include "win32.h"
38+
#ifdef _WIN32_IE
39+
#undef _WIN32_IE
40+
#endif
3841
#define _WIN32_IE 0x0400
42+
#ifdef near
43+
#undef near
44+
#endif
45+
#define near
3946
#include <shlobj.h>
4047
#else
4148
#include <sys/socket.h>

src/interfaces/libpq/win32.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ LIB32_OBJS= \
138138
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\libpq.res"
139139

140140
LINK32=link.exe
141-
LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib wsock32.lib $(SSL_LIBS) \
141+
LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib $(SSL_LIBS) \
142142
/nologo /subsystem:windows /dll $(LOPT) /incremental:no\
143143
/pdb:"$(OUTDIR)\libpqdll.pdb" /machine:I386 /out:"$(OUTDIR)\$(OUTFILENAME).dll"\
144144
/implib:"$(OUTDIR)\$(OUTFILENAME)dll.lib" /def:$(OUTFILENAME)dll.def

src/port/path.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/path.c,v 1.49 2005/01/06 21:41:45 tgl Exp $
11+
* $PostgreSQL: pgsql/src/port/path.c,v 1.50 2005/01/10 00:19:51 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -18,7 +18,14 @@
1818
#include <ctype.h>
1919
#include <sys/stat.h>
2020
#ifdef WIN32
21+
#ifdef _WIN32_IE
22+
#undef _WIN32_IE
23+
#endif
2124
#define _WIN32_IE 0x0400
25+
#ifdef near
26+
#undef near
27+
#endif
28+
#define near
2229
#include <shlobj.h>
2330
#else
2431
#include <unistd.h>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy