build-sys: use AC_USE_SYSTEM_EXTENSIONS

The earlier _GNU_SOURCE definitions possibly did not take effect
everywhere where it was intended.
This commit is contained in:
Sami Kerola 2013-02-12 22:13:45 +00:00
parent 73b7958770
commit 47b9786533
20 changed files with 1 additions and 91 deletions

View file

@ -5,6 +5,7 @@ AC_INIT([fluxbox],
[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

View file

@ -34,11 +34,6 @@
#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>

View file

@ -39,10 +39,6 @@
#include "XFontImp.hh"
#include "GContext.hh"
//use gnu extensions
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif //_GNU_SOURCE
#ifndef __USE_GNU
#define __USE_GNU

View file

@ -30,11 +30,6 @@
* 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"

View file

@ -30,11 +30,6 @@
#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

View file

@ -22,11 +22,6 @@
// 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"

View file

@ -22,11 +22,6 @@
#include "RegExp.hh"
//use GNU extensions
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#include <iostream>
using std::string;

View file

@ -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

View file

@ -31,10 +31,6 @@
#include <locale.h>
#endif // HAVE_SETLOCALE
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#ifdef HAVE_CSTDIO
#include <cstdio>
#else

View file

@ -49,11 +49,6 @@
#include <string.h>
#endif
//use GNU extensions
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#include <set>

View file

@ -77,11 +77,6 @@
#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"

View file

@ -24,11 +24,6 @@
#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"

View file

@ -55,11 +55,6 @@
#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>

View file

@ -59,11 +59,6 @@
#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>

View file

@ -36,11 +36,6 @@
#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>

View file

@ -57,11 +57,6 @@
#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

View file

@ -32,11 +32,6 @@
#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

View file

@ -21,11 +21,6 @@
#include "Resource.hh"
//use of strcasecmp
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#include <string>
#include <iostream>
#ifdef HAVE_CSTDIO

View file

@ -20,9 +20,6 @@
// DEALINGS IN THE SOFTWARE.
#include "FbTk/StringUtil.hh"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif //_GNU_SOURCE
#include <cstring>
#include <cstdlib>

View file

@ -30,11 +30,6 @@
#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