diff options
author | lloyd <[email protected]> | 2010-02-14 02:36:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-14 02:36:07 +0000 |
commit | ccc4eb93ff4d127de821b0ef83b010678bbfb470 (patch) | |
tree | 1c7fcd86cea765efc60f34786f871229e49fa478 /src | |
parent | f2d80a2266e8c3e4ca862a4f36a0d3e874f79dfd (diff) |
Call global functions with :: prefix
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/mlock.cpp | 8 |
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 } |