Line 0
Link Here
|
|
|
1 |
$NetBSD$ |
2 |
|
3 |
--- ./boost/boost/config/compiler/gcc.hpp.orig 2003-05-26 08:27:34.000000000 -0600 |
4 |
+++ ./boost/boost/config/compiler/gcc.hpp |
5 |
@@ -1,7 +1,13 @@ |
6 |
-// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and |
7 |
-// distribute this software is granted provided this copyright notice appears |
8 |
-// in all copies. This software is provided "as is" without express or implied |
9 |
-// warranty, and with no claim as to its suitability for any purpose. |
10 |
+// (C) Copyright John Maddock 2001 - 2003. |
11 |
+// (C) Copyright Darin Adler 2001 - 2002. |
12 |
+// (C) Copyright Jens Maurer 2001 - 2002. |
13 |
+// (C) Copyright Beman Dawes 2001 - 2003. |
14 |
+// (C) Copyright Douglas Gregor 2002. |
15 |
+// (C) Copyright David Abrahams 2002 - 2003. |
16 |
+// (C) Copyright Synge Todo 2003. |
17 |
+// Use, modification and distribution are subject to the |
18 |
+// Boost Software License, Version 1.0. (See accompanying file |
19 |
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
20 |
|
21 |
// See http://www.boost.org for most recent version. |
22 |
|
23 |
@@ -23,24 +29,53 @@ |
24 |
# endif |
25 |
# endif |
26 |
|
27 |
+# if __GNUC__ == 2 && __GNUC_MINOR__ < 96 |
28 |
+# define BOOST_NO_SFINAE |
29 |
+# endif |
30 |
+ |
31 |
# if __GNUC__ == 2 && __GNUC_MINOR__ <= 97 |
32 |
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS |
33 |
# define BOOST_NO_OPERATORS_IN_NAMESPACE |
34 |
# endif |
35 |
|
36 |
+# if __GNUC__ < 3 |
37 |
+# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE |
38 |
+# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL |
39 |
+# endif |
40 |
+ |
41 |
+# |
42 |
+# |
43 |
+# |
44 |
+ |
45 |
+// |
46 |
+// Bug specific to gcc 3.1 and 3.2: |
47 |
+// |
48 |
+#if (__GNUC__ == 3) && ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2)) |
49 |
+# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS |
50 |
+#endif |
51 |
+ |
52 |
// |
53 |
-// Threading support: |
54 |
-// Turn this on unconditionally here, it will get turned off again later |
55 |
-// if no threading API is detected. |
56 |
+// Threading support: Turn this on unconditionally here (except for |
57 |
+// those platforms where we can know for sure). It will get turned off again |
58 |
+// later if no threading API is detected. |
59 |
// |
60 |
-#define BOOST_HAS_THREADS |
61 |
+#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__) |
62 |
+# define BOOST_HAS_THREADS |
63 |
+#endif |
64 |
|
65 |
// |
66 |
// gcc has "long long" |
67 |
// |
68 |
#define BOOST_HAS_LONG_LONG |
69 |
|
70 |
-#define BOOST_COMPILER "GNU C++ version " BOOST_STRINGIZE(__GNUC__) "." BOOST_STRINGIZE(__GNUC_MINOR__) |
71 |
+// |
72 |
+// gcc implements the named return value optimization since version 3.1 |
73 |
+// |
74 |
+#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 ) |
75 |
+#define BOOST_HAS_NRVO |
76 |
+#endif |
77 |
+ |
78 |
+#define BOOST_COMPILER "GNU C++ version " __VERSION__ |
79 |
|
80 |
// |
81 |
// versions check: |
82 |
@@ -49,11 +84,13 @@ |
83 |
# error "Compiler not configured - please reconfigure" |
84 |
#endif |
85 |
// |
86 |
-// last known and checked version is 3.2: |
87 |
-#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3)) |
88 |
+// last known and checked version is 3.4: |
89 |
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 4)) |
90 |
# if defined(BOOST_ASSERT_CONFIG) |
91 |
# error "Unknown compiler version - please run the configure tests and report the results" |
92 |
# else |
93 |
# warning "Unknown compiler version - please run the configure tests and report the results" |
94 |
# endif |
95 |
#endif |
96 |
+ |
97 |
+ |