Browse Source

Fix compilation with clang.

This resolves some depending names that GCC generously accepts.

Thanks to Pawel Worach <pawel.worach@gmail.com>.
master
Richard Kreckel 14 years ago
parent
commit
f7da433f3a
  1. 4
      src/base/hash/cl_hash2.h
  2. 4
      src/base/hash/cl_hashuniq.h

4
src/base/hash/cl_hash2.h

@ -118,7 +118,7 @@ private:
if (this->_freelist < -1) if (this->_freelist < -1)
return; return;
// Can we make room? // Can we make room?
if (_garcol_fun(this))
if (this->_garcol_fun(this))
if (this->_freelist < -1) if (this->_freelist < -1)
return; return;
// No! Have to grow the hash table. // No! Have to grow the hash table.
@ -126,7 +126,7 @@ private:
#else #else
// workaround Sun C++ 4.1 inline function compiler bug // workaround Sun C++ 4.1 inline function compiler bug
if (this->_freelist >= -1) { if (this->_freelist >= -1) {
if (!_garcol_fun(this) || (this->_freelist >= -1))
if (!this->_garcol_fun(this) || (this->_freelist >= -1))
grow(); grow();
} }
#endif #endif

4
src/base/hash/cl_hashuniq.h

@ -115,7 +115,7 @@ private:
if (this->_freelist < -1) if (this->_freelist < -1)
return; return;
// Can we make room? // Can we make room?
if (_garcol_fun(this))
if (this->_garcol_fun(this))
if (this->_freelist < -1) if (this->_freelist < -1)
return; return;
// No! Have to grow the hash table. // No! Have to grow the hash table.
@ -123,7 +123,7 @@ private:
#else #else
// workaround Sun C++ 4.1 inline function compiler bug // workaround Sun C++ 4.1 inline function compiler bug
if (this->_freelist >= -1) { if (this->_freelist >= -1) {
if (!_garcol_fun(this) || (this->_freelist >= -1))
if (!this->_garcol_fun(this) || (this->_freelist >= -1))
grow(); grow();
} }
#endif #endif

Loading…
Cancel
Save