From: Friedrich Beckmann Date: Sun, 10 Jul 2022 19:40:39 +0000 (+0200) Subject: Revert "Add header wrapper for glib to supply g_memdup2() for glib before 2.68." X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=efc1b9df710cf67d746aba6a19528fdcd4abce48 Revert "Add header wrapper for glib to supply g_memdup2() for glib before 2.68." This reverts commit 652517f6e99bca918bf2275003f5d51fe5f2f0c6. --- diff --git a/configure.ac b/configure.ac index 20338a04b7..b8e8b7ddce 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 04da062f21..42500c049f 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -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 -# 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 index 51178ac737..0000000000 --- a/src/ui/gui/include/glib.in.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Wrapper for . - 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 . */ - -#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 */