Exception is not only for Linux, also for MinGW; refs #10
This commit is contained in:
@@ -12,30 +12,26 @@
|
|||||||
// otherwise there is a fallback wich makes everything much more compliacted
|
// otherwise there is a fallback wich makes everything much more compliacted
|
||||||
# ifndef MRW__OLD_PRE11_COMPILER
|
# ifndef MRW__OLD_PRE11_COMPILER
|
||||||
# if __cplusplus < 201103L
|
# if __cplusplus < 201103L
|
||||||
/// Code is compiled with an old non C++11 standard compliant compiler
|
# if __cplusplus==1
|
||||||
/** There are workarounds for old non C++11 compatible
|
// __cplusplus==1 is a known bug in gcc 4.6.3
|
||||||
compilers. These workarounds are deprecated, but will remain until
|
# warning your compiler has a know bug, please upgrade to gcc >= 4.7
|
||||||
most compilers fully support C++11. So this workaround will be
|
# warning see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html
|
||||||
removed in future releases, when support for C++11 is more
|
# else
|
||||||
common. Only rely on this workaround, if you really have to. */
|
/// Code is compiled with an old non C++11 standard compliant compiler
|
||||||
# define MRW__OLD_PRE11_COMPILER
|
/** There are workarounds for old non C++11 compatible
|
||||||
# warning you need a C++11 compliant compiler, on gcc use option -std=c++11
|
compilers. These workarounds are deprecated, but will remain until
|
||||||
# warning emulating C++11 - this changes the way you use the library
|
most compilers fully support C++11. So this workaround will be
|
||||||
# warning this is deprecated and will be removed in future releases
|
removed in future releases, when support for C++11 is more
|
||||||
# warning refere to the library documentation for more details
|
common. Only rely on this workaround, if you really have to. */
|
||||||
|
# define MRW__OLD_PRE11_COMPILER
|
||||||
|
# warning you need a C++11 compliant compiler, on gcc: add -std=c++11
|
||||||
|
# warning emulating C++11 - this changes the way you use the library
|
||||||
|
# warning this is deprecated and will be removed in future releases
|
||||||
|
# warning refere to the library documentation for more details
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# 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 see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html
|
|
||||||
# ifdef __linux__
|
|
||||||
# undef MRW__OLD_PRE11_COMPILER
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
|
|
||||||
|
|
||||||
# ifdef MRW__OLD_PRE11_COMPILER
|
# ifdef MRW__OLD_PRE11_COMPILER
|
||||||
# if __cplusplus<200300L
|
# if __cplusplus<200300L
|
||||||
# include <boost/shared_ptr.hpp>
|
# include <boost/shared_ptr.hpp>
|
||||||
|
Reference in New Issue
Block a user