mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
* GCC 2.95 compatibility.
This commit is contained in:
parent
cf0287c09e
commit
833f2fc92d
6 changed files with 29 additions and 3 deletions
16
configure.ac
16
configure.ac
|
@ -26,6 +26,22 @@ AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
|
# Check for pubsetbuf.
|
||||||
|
AC_MSG_CHECKING([for pubsetbuf])
|
||||||
|
AC_LANG_PUSH(C++)
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
static char buf[1024];]],
|
||||||
|
[[cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));]])],
|
||||||
|
[AC_MSG_RESULT(yes) AC_DEFINE(HAVE_PUBSETBUF, 1, [whether pubsetbuf is available])],
|
||||||
|
AC_MSG_RESULT(no))
|
||||||
|
AC_LANG_POP(C++)
|
||||||
|
|
||||||
|
# Check for <locale>
|
||||||
|
AC_LANG_PUSH(C++)
|
||||||
|
AC_CHECK_HEADERS([locale])
|
||||||
|
AC_LANG_POP(C++)
|
||||||
|
|
||||||
AC_PATH_PROG(wget, wget)
|
AC_PATH_PROG(wget, wget)
|
||||||
AC_PATH_PROG(xmllint, xmllint)
|
AC_PATH_PROG(xmllint, xmllint)
|
||||||
AC_PATH_PROG(xsltproc, xsltproc)
|
AC_PATH_PROG(xsltproc, xsltproc)
|
||||||
|
|
|
@ -24,10 +24,13 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#if HAVE_LOCALE
|
||||||
#include <locale>
|
#include <locale>
|
||||||
//#define BOOST_NO_STD_LOCALE
|
#else
|
||||||
//#define BOOST_NO_LOCALE_ISIDIGIT
|
#define BOOST_NO_STD_LOCALE
|
||||||
//#include <cctype>
|
#define BOOST_NO_LOCALE_ISIDIGIT
|
||||||
|
#include <cctype>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/format/macros_default.hpp>
|
#include <boost/format/macros_default.hpp>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
|
||||||
|
@ -71,7 +72,9 @@ int main(int argc, char * * argv)
|
||||||
ATinit(argc, argv, &bottomOfStack);
|
ATinit(argc, argv, &bottomOfStack);
|
||||||
|
|
||||||
/* Turn on buffering for cerr. */
|
/* Turn on buffering for cerr. */
|
||||||
|
#if HAVE_PUBSETBUF
|
||||||
cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
||||||
|
#endif
|
||||||
|
|
||||||
try {
|
try {
|
||||||
initAndRun(argc, argv);
|
initAndRun(argc, argv);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <cerrno>
|
||||||
|
|
||||||
#include "globals.hh"
|
#include "globals.hh"
|
||||||
#include "normalise.hh"
|
#include "normalise.hh"
|
||||||
#include "shared.hh"
|
#include "shared.hh"
|
||||||
|
|
Loading…
Reference in a new issue