summaryrefslogtreecommitdiff
path: root/tests/Conn_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-30 14:21:43 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-30 14:21:43 +0000
commit0b216efb5333c8a85135a2684b1b0c0f6f1366dc (patch)
tree82e6d5f5b95bbc37856024c2391ce517932f8570 /tests/Conn_Test.cpp
parentd021f3a02183c024d11185c7bfff37dabf570fba (diff)
downloadATCD-0b216efb5333c8a85135a2684b1b0c0f6f1366dc.tar.gz
added ACE_HAS_OLD_GNUG
Diffstat (limited to 'tests/Conn_Test.cpp')
-rw-r--r--tests/Conn_Test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp
index de5167f9006..c254bee1cdb 100644
--- a/tests/Conn_Test.cpp
+++ b/tests/Conn_Test.cpp
@@ -180,14 +180,13 @@ Svc_Handler::idle (u_long flags)
// Template specializations. Older versions of g++, such as 2.7.2.3,
// can't deal with them, though.
-#if defined (ACE_HAS_TEMPLATE_SPECIALIZATION) && \
- (!defined (__GNUG__) || (__GNUC__ > 2 || __GNUC_MINOR__ >= 90))
+#if defined (ACE_HAS_TEMPLATE_SPECIALIZATION) && !defined (ACE_HAS_OLD_GNUG)
size_t
ACE_Hash_Addr<ACE_INET_Addr>::hash_i (const ACE_INET_Addr &addr) const
{
return addr.get_ip_address () + addr.get_port_number ();
}
-#endif /* ACE_HAS_TEMPLATE_SPECIALIZATION && egcs, if __GNUG__ */
+#endif /* ACE_HAS_TEMPLATE_SPECIALIZATION && newer g++, if __GNUG__ */
// ****************************************