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:
parent
73b7958770
commit
47b9786533
20 changed files with 1 additions and 91 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -22,11 +22,6 @@
|
|||
|
||||
#include "RegExp.hh"
|
||||
|
||||
//use GNU extensions
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif // _GNU_SOURCE
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using std::string;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -49,11 +49,6 @@
|
|||
#include <string.h>
|
||||
#endif
|
||||
|
||||
//use GNU extensions
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif // _GNU_SOURCE
|
||||
|
||||
#include <set>
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue