CCfits 2.6

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

MSconfig.h
1 //1
2 //2
3 //3
4 //4
27 // Use "#pragma once" instead of "ifndef MSCONFIG_H, define MSCONFIG_H,
28 // #endif" if you know you are using a Microsoft compiler, which we are
29 // if this file is being included. Using "pragma once" is much faster
30 // and less error prone.
31 #pragma once
32
33 // _MSC_VER == 1300 is the first release of Microsoft Visual C++ .NET.
34 // There are much fewer problems with this version. So much of this
35 // file will be skipped
36
40 #define ITERATORBASE_DEFECT 1
41
45 #if _MSC_VER >= 1300
46 #define SPEC_TEMPLATE_DECL_DEFECT 1
47 #endif
48
53 #define TEMPLATE_AMBIG7_DEFECT 1
54
56 #undef SSTREAM_DEFECT
57
58 # pragma warning(disable:4244) // conversion from double to float
59 # pragma warning(disable:4305) // truncation from const double to const float
60 # pragma warning(disable:4800) // forcing value to bool (performance warning)
61
62 #if _MSC_VER < 1300
63
64 /* Turn off annoying warning. */
65
66 # pragma warning(disable:4250) // inherits via dominance
67 # pragma warning(disable:4786) // '255' characters in the debug information
68
69
71 #ifndef M_PI
72 #define M_PI 3.14159265358979323846
73 #endif
74
78 #define SPEC_TEMPLATE_IMP_DEFECT 1
79
83 #define TEMPLATE_AMBIG_DEFECT 1
84
86 #define TERMINATE_DEFECT
87
92 #define BIND2ND_DEFECT 1
93
100 #define CLONE_DEFECT 1
101
104 #define ITERATOR_MEMBER_DEFECT 1
105
109 #define ITERATORBASE_DEFECT 1
110
113 #define MEMFUN1_DEFECT 1
114
117 #define TRANSFORM_DEFECT 1
118
121 #define VALARRAY_DEFECT 1
122
123 namespace std {
124
127 template < class T >
128 inline const T& max ( const T & a, const T & b )
129 {
130 // Break this into two lines to avoid an incorrect warning with
131 // Cfront-based compilers.
132 const T & retval = a < b ? b : a;
133
134 return retval;
135 }
136
139 template < class T >
140 inline const T& min ( const T & a, const T & b)
141 {
142 // Break this into two lines to avoid an incorrect warning with
143 // Cfront-based compilers.
144 const T & retval = b < a ? b : a;
145
146 return retval;
147 }
148
151 template < class T >
152 inline const T & abs ( const T & a )
153 {
154 const T & retval = a < 0 ? -a : a;
155
156 return retval;
157 }
158
159 } //end namespace std::
160
161 #endif