From 017a906cde67e246655de5f95e7f4f27f0d8169f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 19 Sep 2013 12:41:31 +0200 Subject: compat: fix win32 build --- compat/compat.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/compat/compat.cpp b/compat/compat.cpp index 7d9f9357..6d9298bb 100644 --- a/compat/compat.cpp +++ b/compat/compat.cpp @@ -61,15 +61,6 @@ PortableLockedShm::PortableLockedShm(const char *shmName, const char *mutexName, mem = (void*) -1; } -bool PortableLockedShm::success() -{ -#ifndef _WIN32 - return (void*) mem != (void*) -1; -#else - return (void*) mem != NULL; -#endif -} - PortableLockedShm::~PortableLockedShm() { //(void) shm_unlink(shm_filename); @@ -88,6 +79,13 @@ void PortableLockedShm::unlock() flock(fd, LOCK_UN); } +#endif - +bool PortableLockedShm::success() +{ +#ifndef _WIN32 + return (void*) mem != (void*) -1; +#else + return (void*) mem != NULL; #endif +} \ No newline at end of file -- cgit v1.2.3