⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcc.h

📁 彩信浏览器
💻 H
字号:
//  (C) Copyright Boost.org 2001. 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 most recent version./*  * @$Id: gcc.h,v 1.8 2006/08/15 13:54:58 keesblom Exp $  *///  GNU C++ compiler setup:#   if __GNUC__ == 2 && __GNUC_MINOR__ == 91       // egcs 1.1 won't parse shared_ptr.hpp without this:#      define AMBULANT_NO_AUTO_PTR#   endif#   if __GNUC__ == 2 && __GNUC_MINOR__ < 95      //      // Prior to gcc 2.95 member templates only partly      // work - define AMBULANT_MSVC6_MEMBER_TEMPLATES      // instead since inline member templates mostly work.      //#     define AMBULANT_NO_MEMBER_TEMPLATES#     if __GNUC_MINOR__ >= 9#       define AMBULANT_MSVC6_MEMBER_TEMPLATES#     endif#   endif#   if __GNUC__ == 2 && __GNUC_MINOR__ == 95/* gcc 2.95 has <ostream.h> instead of <ostream> keesblom */#    define  AMBULANT_NO_OSTREAM#   endif#   if __GNUC__ == 2 && __GNUC_MINOR__ <= 97#     define AMBULANT_NO_MEMBER_TEMPLATE_FRIENDS#     define AMBULANT_NO_OPERATORS_IN_NAMESPACE#   endif//// Threading support: Turn this on unconditionally here (except for// MinGW, where we can know for sure). It will get turned off again// later if no threading API is detected.//#if !defined(__MINGW32__) || defined(_MT)# define AMBULANT_HAS_THREADS#endif //// gcc has "long long"//#define AMBULANT_HAS_LONG_LONG//// gcc implements the named return value optimization since version 3.1//#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )#define AMBULANT_HAS_NRVO#endif#define AMBULANT_COMPILER "GNU C++ version " __VERSION__//// versions check:// we don't know gcc prior to version 2.90:#if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)#  error "Compiler not configured - please reconfigure"#endif//// Jack checked 4.0 with boost configure and it seems fine:#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 1))#  if defined(AMBULANT_ASSERT_CONFIG)#     error "Unknown compiler version - please run the configure tests and report the results"#  else#     warning "Unknown compiler version - please run the configure tests and report the results"#  endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -