Get rid of retail definitions of HAVE_STRDUP and HAVE_VSNPRINTF in
some of the Windows-only makefiles; the correct place to assert these things is pg_config.h.win32. Per bug #2677.
This commit is contained in:
parent
d735804f88
commit
617f123f06
@ -53,7 +53,7 @@ CLEAN :
|
||||
CPP_PROJ=/nologo $(OPT) /W3 /EHsc /D "WIN32" $(DEBUGDEF) /D "_CONSOLE" /D\
|
||||
"_MBCS" /Fp"$(INTDIR)\pg_config.pch" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \
|
||||
/I ..\..\include /I ..\..\interfaces\libpq /I ..\..\include\port\win32 \
|
||||
/I ..\..\include\port\win32_msvc /D "HAVE_STRDUP" /D "FRONTEND" \
|
||||
/I ..\..\include\port\win32_msvc /D "FRONTEND" \
|
||||
/D "_CRT_SECURE_NO_DEPRECATE"
|
||||
|
||||
CPP_OBJS=$(INTDIR)/
|
||||
|
@ -32,7 +32,7 @@ CPP_PROJ=/nologo $(OPT) /W3 /EHsc /D "WIN32" $(DEBUGDEF) /D "_CONSOLE" /D\
|
||||
"_MBCS" /Fp"$(INTDIR)\pg_dump.pch" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \
|
||||
/I ..\..\include /I ..\..\interfaces\libpq /I ..\..\include\port\win32 \
|
||||
/I ..\..\include\port\win32_msvc /I ..\..\backend \
|
||||
/D "HAVE_STRDUP" /D "FRONTEND" /D "_CRT_SECURE_NO_DEPRECATE"
|
||||
/D "FRONTEND" /D "_CRT_SECURE_NO_DEPRECATE"
|
||||
|
||||
CPP_OBJS=$(INTDIR)/
|
||||
CPP_SBRS=.
|
||||
|
@ -82,7 +82,7 @@ LIBRARIES = cw32mt.lib ..\..\interfaces\libpq\$(LIBPG_DIR)\blibpq.lib
|
||||
|
||||
.path.obj = $(INTDIR)
|
||||
|
||||
USERDEFINES = WIN32;_CONSOLE;_MBCS;HAVE_STRDUP
|
||||
USERDEFINES = WIN32;_CONSOLE;_MBCS
|
||||
|
||||
ALL : sql_help.h psqlscan.c "..\..\port\pg_config_paths.h" "$(OUTDIR)\psql.exe"
|
||||
|
||||
|
@ -30,7 +30,7 @@ CPP_PROJ=/nologo $(OPT) /W3 /EHsc /D "WIN32" $(DEBUGDEF) /D "_CONSOLE" /D\
|
||||
"_MBCS" /Fp"$(INTDIR)\psql.pch" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \
|
||||
/I ..\..\include /I ..\..\interfaces\libpq /I ..\..\include\port\win32 \
|
||||
/I ..\..\include\port\win32_msvc /I ..\pg_dump /I ..\..\backend \
|
||||
/D "HAVE_STRDUP" /D "FRONTEND" /D "_CRT_SECURE_NO_DEPRECATE"
|
||||
/D "FRONTEND" /D "_CRT_SECURE_NO_DEPRECATE"
|
||||
|
||||
CPP_OBJS=$(INTDIR)/
|
||||
CPP_SBRS=.
|
||||
|
@ -529,7 +529,7 @@
|
||||
#define HAVE_UTIME_H 1
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
/* #undef HAVE_VSNPRINTF */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the `waitpid' function. */
|
||||
/* #undef HAVE_WAITPID */
|
||||
|
@ -59,7 +59,7 @@ INTDIR=.\Release
|
||||
|
||||
OUTFILENAME=blibpq
|
||||
|
||||
USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
|
||||
USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS
|
||||
|
||||
CPP=bcc32.exe
|
||||
CPP_PROJ = -I$(BCB)\include;..\..\include;..\..\include\port\win32;..\..\include\port\win32_msvc;..\..\port -n"$(INTDIR)" -WD -c -D$(USERDEFINES) -tWM \
|
||||
|
@ -124,7 +124,7 @@ pg_config_paths.h: win32.mak
|
||||
CPP_PROJ=/nologo /W3 /EHsc $(OPT) /I "..\..\include" /I "..\..\include\port\win32" /I "..\..\include\port\win32_msvc" /I "..\..\port" /I. /D "FRONTEND" $(DEBUGDEF) /D\
|
||||
"WIN32" /D "_WINDOWS" /Fp"$(INTDIR)\libpq.pch" \
|
||||
/Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \
|
||||
/D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" /D "_CRT_SECURE_NO_DEPRECATE"
|
||||
/D "_CRT_SECURE_NO_DEPRECATE"
|
||||
|
||||
!IFDEF USE_SSL
|
||||
CPP_PROJ=$(CPP_PROJ) /D USE_SSL
|
||||
|
Loading…
x
Reference in New Issue
Block a user