]> sigrok.org Git - pulseview.git/commitdiff
win32: Re-fix the Windows build (namespace pollution via windows.h).
authorUwe Hermann <redacted>
Sat, 24 Oct 2015 16:54:18 +0000 (18:54 +0200)
committerUwe Hermann <redacted>
Sat, 24 Oct 2015 16:54:18 +0000 (18:54 +0200)
This brings back / extends fixes for bug #517.

pv/popups/channels.cpp
pv/session.cpp
pv/session.hpp
pv/storesession.cpp

index ea5f5fbed8d10c91c61dc1d39cca1826030ab81b..bffd0dfefbb15e6182b6c4ed54ee5ae9ac3dbd27 100644 (file)
 
 #include <map>
 
 
 #include <map>
 
+#ifdef _WIN32
+// Windows: Avoid boost/thread namespace pollution (which includes windows.h).
+#define NOGDI
+#define NORESOURCE
+#endif
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
index 4130096830a80944c7ab8d27a583289ab3cfefb8..e6fb52fd7dd0d589342ed877ee573cbb572a4755 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#ifdef _WIN32
+// Windows: Avoid boost/thread namespace pollution (which includes windows.h).
+#define NOGDI
+#define NORESOURCE
+#endif
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
index 0828edbbf912cb3d8e09e18db94102df872ca1e1..2eb4f630fd3be357161272f3b1ae60028390ce1b 100644 (file)
@@ -31,7 +31,7 @@
 #include <vector>
 
 #ifdef _WIN32
 #include <vector>
 
 #ifdef _WIN32
-// Windows: Avoid namespace pollution by thread.hpp (which includes windows.h).
+// Windows: Avoid boost/thread namespace pollution (which includes windows.h).
 #define NOGDI
 #define NORESOURCE
 #endif
 #define NOGDI
 #define NORESOURCE
 #endif
index da2f963be9eb99609786800e9c45ad3ece294040..c7c2edb0b4eace1e1fcf290770527b35ac6d12fb 100644 (file)
 
 #include <cassert>
 
 
 #include <cassert>
 
+#ifdef _WIN32
+// Windows: Avoid boost/thread namespace pollution (which includes windows.h).
+#define NOGDI
+#define NORESOURCE
+#endif
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
 #include <boost/thread/locks.hpp>
 #include <boost/thread/shared_mutex.hpp>