Bug 178189 - |nsCOMPtr|: do we still care about VC++4.2? and if not, can we remove this comment; r=(scc + benjamin)

This commit is contained in:
Henry Jia 2008-09-29 00:17:30 +02:00
Родитель 9273a4603a
Коммит f79633e394
2 изменённых файлов: 0 добавлений и 21 удалений

Просмотреть файл

@ -388,18 +388,12 @@ typedef PRUint32 nsrefcnt;
/* under VC++ (Windows), we don't have autoconf yet */
#if defined(_MSC_VER) && (_MSC_VER>=1100)
/* VC++ 5.0 and greater implement template specialization, 4.2 is unknown */
#define HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX
#define HAVE_CPP_EXPLICIT
#define HAVE_CPP_TYPENAME
#define HAVE_CPP_ACCESS_CHANGING_USING
#if (_MSC_VER==1100)
/* VC++5.0 has an internal compiler error (sometimes) without this */
#undef HAVE_CPP_ACCESS_CHANGING_USING
#endif
#define HAVE_CPP_NAMESPACE_STD
#define HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
#define HAVE_CPP_2BYTE_WCHAR_T

Просмотреть файл

@ -166,21 +166,6 @@
#define NSCAP_LOG_RELEASE(this, ptr)
#endif
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined
in an order that satisfies:
already_AddRefed < nsCOMPtr
nsCOMPtr < nsGetterAddRefs
The other compilers probably won't complain, so please don't reorder these
classes, on pain of breaking 4.2 compatibility.
*/
template <class T>
struct already_AddRefed
/*