Revert "Add header wrapper for glib to supply g_memdup2() for glib before 2.68."
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 10 Jul 2022 19:40:39 +0000 (21:40 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 10 Jul 2022 19:40:39 +0000 (21:40 +0200)
This reverts commit 652517f6e99bca918bf2275003f5d51fe5f2f0c6.

configure.ac
src/ui/gui/automake.mk
src/ui/gui/include/glib.in.h [deleted file]

index 20338a04b73f8606d18af8a7f5714e2a95b6d88f..b8e8b7ddce58d89d4cef4480ac643a45daefeae5 100644 (file)
@@ -154,7 +154,6 @@ if test "$with_gui" != "no"; then
 
 fi
 
-gl_NEXT_HEADERS([glib.h])
 gl_NEXT_HEADERS([gtk/gtk.h])
 
 dnl Checks needed for psql reader
index 04da062f21e2c189568982f186e1b2f8ba83c975..42500c049fbdd10a842ecfd6eb6dcd0823ae24ff 100644 (file)
@@ -428,22 +428,6 @@ src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h
 CLEANFILES += src/ui/gui/include/gtk/gtk.h
 EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h src/ui/gui/resources.xml
 
-# <gtk/gtk.h> wrapper
-BUILT_SOURCES += src/ui/gui/include/glib.h
-src/ui/gui/include/glib.h: src/ui/gui/include/glib.in.h
-       @$(MKDIR_P) src/ui/gui/include
-       $(AM_V_GEN)rm -f $@-t $@ && \
-       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         $(SED) -e 's|%''INCLUDE_NEXT''%|$(INCLUDE_NEXT)|g' \
-             -e 's|%''PRAGMA_SYSTEM_HEADER''%|$(PRAGMA_SYSTEM_HEADER)|g' \
-             -e 's|%''PRAGMA_COLUMNS''%|$(PRAGMA_COLUMNS)|g' \
-             -e 's|%''NEXT_GLIB_H''%|$(NEXT_GLIB_H)|g' \
-             < $(srcdir)/src/ui/gui/include/glib.in.h; \
-       } > $@-t && \
-       mv $@-t $@
-CLEANFILES += src/ui/gui/include/glib.h
-EXTRA_DIST += src/ui/gui/include/glib.in.h
-
 include $(top_srcdir)/src/ui/gui/icons/automake.mk
 
 src/ui/gui/pspp.res: src/ui/gui/pspp.rc $(w32_icons)
diff --git a/src/ui/gui/include/glib.in.h b/src/ui/gui/include/glib.in.h
deleted file mode 100644 (file)
index 51178ac..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Wrapper for <glib.h>.
-   Copyright (C) 2022 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-
-#ifndef PSPP_GLIB_H
-#define PSPP_GLIB_H
-
-#if __GNUC__ >= 3
-%PRAGMA_SYSTEM_HEADER%
-#endif
-%PRAGMA_COLUMNS%
-
-#%INCLUDE_NEXT% %NEXT_GLIB_H%
-
-
-#if !GLIB_CHECK_VERSION(2,68,0)
-#define g_memdup2 g_memdup
-#endif
-
-#endif /* PSPP_GLIB_H */