Don't define FRONTEND for libpq
authorAndres Freund <[email protected]>
Tue, 23 Aug 2022 03:39:30 +0000 (20:39 -0700)
committerAndres Freund <[email protected]>
Tue, 23 Aug 2022 03:39:30 +0000 (20:39 -0700)
Not needed anymore after 7143b3e8213.

Discussion: https://postgr.es/m/20220820194550[email protected]

src/interfaces/libpq/Makefile
src/tools/msvc/Mkvcbuild.pm

index 79c574eeb8b42cc7cdfabe3889193641466ef886..1d31b256fc9e927812d3d98020cc4e56e1363c8b 100644 (file)
@@ -22,7 +22,7 @@ NAME= pq
 SO_MAJOR_VERSION= 5
 SO_MINOR_VERSION= $(MAJORVERSION)
 
-override CPPFLAGS :=  -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -I$(top_srcdir)/src/port
+override CPPFLAGS :=  -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -I$(top_srcdir)/src/port
 ifneq ($(PORTNAME), win32)
 override CFLAGS += $(PTHREAD_CFLAGS)
 endif
index 9d41f9aef864532de9cb33ceec23df7714697329..c3cef625ad31ef0975bc338eac0dfb40296c10e3 100644 (file)
@@ -263,7 +263,6 @@ sub mkvcbuild
 
        $libpq = $solution->AddProject('libpq', 'dll', 'interfaces',
                'src/interfaces/libpq');
-       $libpq->AddDefine('FRONTEND');
        $libpq->AddIncludeDir('src/port');
        $libpq->AddLibrary('secur32.lib');
        $libpq->AddLibrary('ws2_32.lib');