build-sys: use AC_USE_SYSTEM_EXTENSIONS The earlier _GNU_SOURCE definitions possibly did not take effect everywhere where it was intended.
jump to
@@ -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
@@ -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>
@@ -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
@@ -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"
@@ -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
@@ -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"
@@ -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;
@@ -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 @@ #ifdef HAVE_SETLOCALE
#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 @@ #else
#include <string.h> #endif -//use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - #include <set>
@@ -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"
@@ -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"
@@ -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>
@@ -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>
@@ -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>
@@ -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
@@ -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
@@ -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
@@ -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>
@@ -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