aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-14 02:36:07 +0000
committerlloyd <[email protected]>2010-02-14 02:36:07 +0000
commitccc4eb93ff4d127de821b0ef83b010678bbfb470 (patch)
tree1c7fcd86cea765efc60f34786f871229e49fa478
parentf2d80a2266e8c3e4ca862a4f36a0d3e874f79dfd (diff)
Call global functions with :: prefix
-rw-r--r--src/utils/mlock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/mlock.cpp b/src/utils/mlock.cpp
index bb3a38d4e..5d6fc3591 100644
--- a/src/utils/mlock.cpp
+++ b/src/utils/mlock.cpp
@@ -22,9 +22,9 @@ namespace Botan {
bool lock_mem(void* ptr, u32bit bytes)
{
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
- return (mlock(ptr, bytes) == 0);
+ return (::mlock(ptr, bytes) == 0);
#elif defined(BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK)
- return (VirtualLock(ptr, bytes) != 0);
+ return (::VirtualLock(ptr, bytes) != 0);
#else
return false;
#endif
@@ -36,9 +36,9 @@ bool lock_mem(void* ptr, u32bit bytes)
void unlock_mem(void* ptr, u32bit bytes)
{
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
- munlock(ptr, bytes);
+ ::munlock(ptr, bytes);
#elif defined(BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK)
- VirtualUnlock(ptr, bytes);
+ ::VirtualUnlock(ptr, bytes);
#endif
}