__cplusplus==1 has no C++11 on Mac; refs #7
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
set +x
|
|
||||||
m4_include(ax_cxx_compile_stdcxx_11.m4)
|
m4_include(ax_cxx_compile_stdcxx_11.m4)
|
||||||
AC_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR])
|
AC_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR])
|
||||||
AC_DEFUN([AX_DEFINE_DIR], [
|
AC_DEFUN([AX_DEFINE_DIR], [
|
||||||
|
@@ -27,14 +27,14 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if __cplusplus==1
|
# if __cplusplus==1
|
||||||
|
// __cplusplus==1 is a known bug in gcc 4.6.3
|
||||||
# warning your compiler has a know bug, please upgrade to gcc >= 4.7
|
# warning your compiler has a know bug, please upgrade to gcc >= 4.7
|
||||||
# warning see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html
|
# warning see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
# ifdef MRW__OLD_PRE11_COMPILER
|
# ifdef MRW__OLD_PRE11_COMPILER
|
||||||
// __cplusplus==1 is a known bug in gcc 4.6.3
|
# if __cplusplus<200300L
|
||||||
# if __cplusplus<200300L && __cplusplus!=1
|
|
||||||
# include <boost/shared_ptr.hpp>
|
# include <boost/shared_ptr.hpp>
|
||||||
namespace std {
|
namespace std {
|
||||||
// there is no std::shared_ptr in pre C++11 compilers, so we use the
|
// there is no std::shared_ptr in pre C++11 compilers, so we use the
|
||||||
|
Reference in New Issue
Block a user