Fixed Windows typo.

This commit is contained in:
Thulinma 2015-04-16 16:10:34 +02:00
parent e672959f96
commit a891b5ba41
2 changed files with 2 additions and 3 deletions

View file

@ -208,7 +208,7 @@ namespace IPC {
///\brief Unlinks the previously opened semaphore ///\brief Unlinks the previously opened semaphore
void semaphore::unlink() { void semaphore::unlink() {
close(); close();
#if defined(__CYGWIN__) || defined(_WIN32) #if !defined(__CYGWIN__) && !defined(_WIN32)
if (myName.size()) { if (myName.size()) {
sem_unlink(myName.c_str()); sem_unlink(myName.c_str());
} }

View file

@ -111,13 +111,12 @@ namespace IPC {
char * mapped; char * mapped;
}; };
#ifdef SHM_ENABLED
#if defined(__CYGWIN__) || defined(_WIN32) #if defined(__CYGWIN__) || defined(_WIN32)
void preservePage(std::string); void preservePage(std::string);
void releasePage(std::string); void releasePage(std::string);
#endif #endif
#ifdef SHM_ENABLED
///\brief A class for managing shared memory pages. ///\brief A class for managing shared memory pages.
class sharedPage { class sharedPage {
public: public: