all repos — fluxbox @ 47b978653358e3cde5eb1432efd5eb05a096f83c

custom fork of the fluxbox windowmanager

build-sys: use AC_USE_SYSTEM_EXTENSIONS

The earlier _GNU_SOURCE definitions possibly did not take effect
everywhere where it was intended.
Sami Kerola kerolasa@iki.fi
commit

47b978653358e3cde5eb1432efd5eb05a096f83c

parent

73b79587708d49adfec3edb464fd0970fc9f9022

M configure.acconfigure.ac

@@ -5,6 +5,7 @@ [1.3.5],

[fluxbox-devel@lists.sourceforge.net],, [http://fluxbox.org/]) AC_CONFIG_SRCDIR([src/fluxbox.cc]) +AC_USE_SYSTEM_EXTENSIONS AM_INIT_AUTOMAKE([foreign 1.10 tar-pax dist-bzip2 subdir-objects]) dnl Determine default prefix
M src/ClientPattern.ccsrc/ClientPattern.cc

@@ -34,11 +34,6 @@ #include "FbTk/App.hh"

#include "FbTk/stringstream.hh" #include "FbTk/STLUtil.hh" -// use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <fstream> #include <string> #include <memory>
M src/FbTk/Font.ccsrc/FbTk/Font.cc

@@ -39,10 +39,6 @@ // standard font system

#include "XFontImp.hh" #include "GContext.hh" -//use gnu extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif //_GNU_SOURCE #ifndef __USE_GNU #define __USE_GNU
M src/FbTk/I18n.ccsrc/FbTk/I18n.cc

@@ -30,11 +30,6 @@ * A copy of which is available (at the time of writing) here:

* http://www.kulichki.com/moshkow/CYRILLIC/locale-tutorial-0_8.txt */ -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include "I18n.hh" #include "FileUtil.hh"
M src/FbTk/ImageControl.ccsrc/FbTk/ImageControl.cc

@@ -30,11 +30,6 @@ #include "App.hh"

#include "SimpleCommand.hh" #include "I18n.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif // HAVE_SYS_TYPES_H
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -22,11 +22,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include "Menu.hh" #include "MenuItem.hh"
M src/FbTk/RegExp.ccsrc/FbTk/RegExp.cc

@@ -22,11 +22,6 @@ // DEALINGS IN THE SOFTWARE.

#include "RegExp.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <iostream> using std::string;
M src/FbTk/Timer.ccsrc/FbTk/Timer.cc

@@ -27,11 +27,6 @@

#include "CommandParser.hh" #include "StringUtil.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef HAVE_CASSERT #include <cassert> #else
M src/FbTk/XmbFontImp.ccsrc/FbTk/XmbFontImp.cc

@@ -31,10 +31,6 @@ #ifdef HAVE_SETLOCALE

#include <locale.h> #endif // HAVE_SETLOCALE -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef HAVE_CSTDIO #include <cstdio> #else
M src/Remember.ccsrc/Remember.cc

@@ -49,11 +49,6 @@ #else

#include <string.h> #endif -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <set>
M src/Screen.ccsrc/Screen.cc

@@ -77,11 +77,6 @@ #include "FbTk/STLUtil.hh"

#include "FbTk/KeyUtil.hh" #include "FbTk/Util.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef USE_SLIT #include "Slit.hh" #include "SlitClient.hh"
M src/Slit.ccsrc/Slit.cc

@@ -24,11 +24,6 @@ // DEALINGS IN THE SOFTWARE.

#include "Slit.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include "Screen.hh" #include "ScreenPlacement.hh" #include "FbTk/ImageControl.hh"
M src/Toolbar.ccsrc/Toolbar.cc

@@ -55,11 +55,6 @@ #include "FbTk/MemFun.hh"

#include "FbTk/STLUtil.hh" #include "FbTk/Util.hh" -// use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <X11/Xutil.h> #include <X11/keysym.h>
M src/Window.ccsrc/Window.cc

@@ -59,11 +59,6 @@ #ifdef SHAPE

#include <X11/extensions/shape.h> #endif // SHAPE -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <X11/Xatom.h> #include <X11/keysym.h>
M src/Workspace.ccsrc/Workspace.cc

@@ -36,11 +36,6 @@ #include "FbTk/StringUtil.hh"

#include "FbTk/FbString.hh" #include "FbTk/MemFun.hh" -// use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <X11/Xlib.h> #include <X11/Xatom.h>
M src/fluxbox.ccsrc/fluxbox.cc

@@ -57,11 +57,6 @@ #include "FbTk/Compose.hh"

#include "FbTk/KeyUtil.hh" #include "FbTk/MemFun.hh" -//Use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef USE_EWMH #include "Ewmh.hh" #endif // USE_EWMH
M src/main.ccsrc/main.cc

@@ -32,11 +32,6 @@ #include "FbTk/CommandParser.hh"

#include "FbTk/FileUtil.hh" #include "FbTk/StringUtil.hh" -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef HAVE_CSTDLIB #include <cstdlib> #else
M src/tests/Resourcetest.ccsrc/tests/Resourcetest.cc

@@ -21,11 +21,6 @@ // DEALINGS IN THE SOFTWARE.

#include "Resource.hh" -//use of strcasecmp -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <string> #include <iostream> #ifdef HAVE_CSTDIO
M src/tests/StringUtiltest.ccsrc/tests/StringUtiltest.cc

@@ -20,9 +20,6 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER

// DEALINGS IN THE SOFTWARE. #include "FbTk/StringUtil.hh" -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif //_GNU_SOURCE #include <cstring> #include <cstdlib>
M util/fluxbox-update_configs.ccutil/fluxbox-update_configs.cc

@@ -30,11 +30,6 @@ #ifdef HAVE_SIGNAL_H

#include <signal.h> #endif // HAVE_SIGNAL_H -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #ifdef HAVE_CSTRING #include <cstring> #else