diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-19 12:41:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-19 12:41:31 +0200 |
commit | 017a906cde67e246655de5f95e7f4f27f0d8169f (patch) | |
tree | 475df1d237727f579de6b83a32ba2de9c3c3ec69 /compat | |
parent | a65e9de1d016dcf958753233113560008b629aff (diff) |
compat: fix win32 build
Diffstat (limited to 'compat')
-rw-r--r-- | compat/compat.cpp | 18 |
1 files 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 |