2001-05-13 18:25:07 +00:00
|
|
|
// Boost config.hpp configuration test program file -----------------------//
|
2000-07-07 16:04:40 +00:00
|
|
|
|
|
|
|
|
// (C) Copyright Boost.org 2000. Permission to copy, use, modify, sell and
|
|
|
|
|
// distribute this software is granted provided this copyright notice appears
|
|
|
|
|
// in all copies. This software is provided "as is" without express or implied
|
|
|
|
|
// warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
|
|
|
|
|
|
// See http://www.boost.org for the most recent version.
|
|
|
|
|
|
2000-07-24 23:50:22 +00:00
|
|
|
#include <boost/config.hpp>
|
2000-07-07 16:04:40 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
using std::cout;
|
2001-05-13 18:25:07 +00:00
|
|
|
using std::hex;
|
|
|
|
|
using std::dec;
|
2000-07-07 16:04:40 +00:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
// boost compiler workaround defines
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
|
|
|
|
cout << "BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZER
|
|
|
|
|
cout << "BOOST_NO_INCLASS_MEMBER_INITIALIZER defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_MEMBER_TEMPLATES
|
|
|
|
|
cout << "BOOST_NO_MEMBER_TEMPLATES defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
|
|
|
cout << "BOOST_NO_MEMBER_TEMPLATE_FRIENDS defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
|
|
|
|
|
cout << "BOOST_NO_OPERATORS_IN_NAMESPACE defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_STD_ITERATOR
|
|
|
|
|
cout << "BOOST_NO_STD_ITERATOR defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2000-09-05 19:57:50 +00:00
|
|
|
# ifdef BOOST_NO_STD_ITERATOR_TRAITS
|
|
|
|
|
cout << "BOOST_NO_STD_ITERATOR_TRAITS defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef BOOST_NO_STDC_NAMESPACE
|
|
|
|
|
cout << "BOOST_NO_STDC_NAMESPACE defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
|
|
|
cout << "BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_NO_USING_TEMPLATE
|
|
|
|
|
cout << "BOOST_NO_USING_TEMPLATE defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_DECL_EXPORTS
|
|
|
|
|
cout << "BOOST_DECL_EXPORTS defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_SYSTEM_HAS_STDINT_H
|
|
|
|
|
cout << "BOOST_SYSTEM_HAS_STDINT_H defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
|
|
|
|
|
// compilers
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef __GNUC__
|
|
|
|
|
cout << "__GNUC__ defined as " << __GNUC__ << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
# ifdef __GNUC_MINOR__
|
|
|
|
|
cout << "__GNUC_MINOR__ defined as " << __GNUC_MINOR__ << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-05 20:41:37 +00:00
|
|
|
# ifdef __EDG_VERSION__
|
|
|
|
|
cout << "__EDG_VERSION__ defined as " << __EDG_VERSION__ << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-17 20:11:27 +00:00
|
|
|
# ifdef __ICC
|
|
|
|
|
cout << "__ICC defined as " << __ICC << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __INTEL_COMPILER
|
|
|
|
|
cout << "__INTEL_COMPILER defined as " << __INTEL_COMPILER << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-19 09:06:21 +00:00
|
|
|
# ifdef __USLC__
|
|
|
|
|
cout << "__USLC__ defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef __BORLANDC__
|
|
|
|
|
cout << "__BORLANDC__ defined as " << __BORLANDC__ << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __MWERKS__
|
|
|
|
|
cout << "__MWERKS__ defined as " << __MWERKS__ << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __SUNPRO_CC
|
|
|
|
|
cout << "__SUNPRO_CC defined as " << __SUNPRO_CC << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
# ifdef __sgi
|
|
|
|
|
cout << "__sgi is defined\n";
|
|
|
|
|
# ifdef _COMPILER_VERSION
|
|
|
|
|
cout << "_COMPILER_VERSION defined as " << _COMPILER_VERSION << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __DECCXX
|
|
|
|
|
cout << "__DECCXX defined\n";
|
|
|
|
|
# ifdef __DECCXX_VER
|
|
|
|
|
cout << "__DECCXX_VER defined as " << __DECCXX_VER << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef _MSC_VER
|
|
|
|
|
cout << "_MSC_VER defined as " << _MSC_VER << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_MSVC
|
|
|
|
|
cout << "BOOST_MSVC defined as " << BOOST_MSVC << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_MSVC6_MEMBER_TEMPLATES
|
|
|
|
|
cout << "BOOST_MSVC6_MEMBER_TEMPLATES defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef BOOST_MSVC_STD_ITERATOR
|
|
|
|
|
cout << "BOOST_MSVC_STD_ITERATOR defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
|
|
|
|
|
// libraries
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
# ifdef __SGI_STL_PORT
|
2001-05-13 18:25:07 +00:00
|
|
|
cout << "__SGI_STL_PORT defined as 0x"
|
|
|
|
|
<< hex << __SGI_STL_PORT << dec << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __GLIBCPP__
|
|
|
|
|
cout << "__GLIBCPP__ defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef _GLIBCPP_VERSION
|
|
|
|
|
cout << "_GLIBCPP_VERSION defined as " << _GLIBCPP_VERSION << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef _GLIBCPP_USE_LONG_LONG
|
|
|
|
|
cout << "_GLIBCPP_USE_LONG_LONG defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
|
cout << "_GLIBCPP_USE_WCHAR_T defined\n";
|
2000-07-07 16:04:40 +00:00
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __STL_NO_NAMESPACES
|
|
|
|
|
cout << "__STL_NO_NAMESPACES defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __STL_USE_NAMESPACES
|
|
|
|
|
cout << "__STL_USE_NAMESPACES defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef __STL_IMPORT_VENDOR_CSTD
|
|
|
|
|
cout << "__STL_IMPORT_VENDOR_CSTD defined\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2001-05-13 18:25:07 +00:00
|
|
|
# ifdef _RWSTD_VER
|
|
|
|
|
cout << "_RWSTD_VER defined as " << _RWSTD_VER << "\n";
|
|
|
|
|
# endif
|
|
|
|
|
|
2000-07-07 16:04:40 +00:00
|
|
|
return 0;
|
2000-09-25 00:49:18 +00:00
|
|
|
}
|