Browse Source

PRIO_MAX is not defined in cygwin, why?

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
34936903fc
  1. 6
      src/util.h

6
src/util.h

@ -500,7 +500,11 @@ inline void SetThreadPriority(int nPriority) @@ -500,7 +500,11 @@ inline void SetThreadPriority(int nPriority)
}
#else
#define THREAD_PRIORITY_LOWEST PRIO_MAX
#if defined __CYGWIN__
#define THREAD_PRIORITY_LOWEST 20
#else
#define THREAD_PRIORITY_LOWEST PRIO_MAX
#endif
#define THREAD_PRIORITY_BELOW_NORMAL 2
#define THREAD_PRIORITY_NORMAL 0
#define THREAD_PRIORITY_ABOVE_NORMAL (-2)

Loading…
Cancel
Save