Skip to content

Commit

Permalink
fixed bad C++11 preprocessor check, should fix danomatika#49
Browse files Browse the repository at this point in the history
  • Loading branch information
danomatika committed Jun 27, 2016
1 parent 3e888d5 commit ffac134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/libpd/cpp/PdBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
#include <iostream>

#ifdef LIBPD_USE_STD_MUTEX
#if __cplusplus <= 201103L // C++ 11 check
#if __cplusplus >= 201103L // C++ 11 check
#define _LOCK() _mutex.lock()
#define _UNLOCK() _mutex.unlock()
#define _GUARD() std::lock_guard<std::mutex> lock(_mutex);
#endif
#else
#endif
#ifndef _LOCK
// no ops
#define _LOCK()
#define _UNLOCK()
Expand Down

0 comments on commit ffac134

Please sign in to comment.