Skip to content

Commit

Permalink
Changing some uses of #ifdef HPX_MSVC to #ifdef WIN32
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed May 16, 2017
1 parent da51f54 commit afcd1fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hpx/config.hpp
Expand Up @@ -43,7 +43,7 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>

#if defined(HPX_MSVC)
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
// On Windows, make sure winsock.h is not included even if windows.h is
// included before winsock2.h
#define _WINSOCKAPI_
Expand Down
2 changes: 1 addition & 1 deletion hpx/lcos/local/recursive_mutex.hpp
Expand Up @@ -32,7 +32,7 @@ namespace hpx { namespace lcos { namespace local

static thread_id_type call()
{
#if defined(HPX_MSVC) || defined(HPX_INTEL_WIN)
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
return (thread_id_type)GetCurrentThreadId();
#else
return (thread_id_type)pthread_self();
Expand Down
2 changes: 1 addition & 1 deletion hpx/util/set_thread_name.hpp
Expand Up @@ -8,7 +8,7 @@

#include <hpx/config.hpp>

#if defined(HPX_MSVC)
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
#include <windows.h>

namespace hpx { namespace util
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/threads/topology.cpp
Expand Up @@ -82,7 +82,8 @@ namespace hpx { namespace threads
"setpriority returned an error");
return false;
}
#elif defined(HPX_MSVC)
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)

if (!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST))
{
HPX_THROWS_IF(ec, no_success, "threadmanager_impl::tfunc",
Expand Down
1 change: 0 additions & 1 deletion src/util/backtrace/backtrace.cpp
Expand Up @@ -65,7 +65,6 @@
#include <dbghelp.h>
#endif


namespace hpx { namespace util {

namespace stack_trace
Expand Down
2 changes: 1 addition & 1 deletion src/util/set_thread_name.cpp
Expand Up @@ -8,7 +8,7 @@

#include <hpx/config.hpp>

#if defined(HPX_MSVC)
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)

#include <hpx/util/set_thread_name.hpp>

Expand Down

0 comments on commit afcd1fa

Please sign in to comment.