diff options
Diffstat (limited to 'ace/ACE_crc32.cpp')
-rw-r--r-- | ace/ACE_crc32.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/ACE_crc32.cpp b/ace/ACE_crc32.cpp index 1320ed59085..f9e91c652ce 100644 --- a/ace/ACE_crc32.cpp +++ b/ace/ACE_crc32.cpp @@ -104,6 +104,9 @@ namespace #define COMPUTE(var, ch) (var) = (crc_table[(var ^ ch) & 0xFF] ^ (var >> 8)) +// Open versioned namespace, if enabled by the user. +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + ACE_UINT32 ACE::crc32 (const char *string) { @@ -143,7 +146,7 @@ ACE::crc32 (const iovec *iov, int len, ACE_UINT32 crc) for (int i = 0; i < len; ++i) { for (const char *p = (const char *) iov[i].iov_base, - *e = (const char *) iov[i].iov_base + iov[i].iov_len; + *e = (const char *) iov[i].iov_base + iov[i].iov_len; p != e; ++p) COMPUTE (crc, *p); @@ -152,4 +155,7 @@ ACE::crc32 (const iovec *iov, int len, ACE_UINT32 crc) return ~crc; } +// Close versioned namespace, if enabled by the user. +ACE_END_VERSIONED_NAMESPACE_DECL + #undef COMPUTE |