Skip to content

Commit

Permalink
undef PTW32_STATIC_LIB for MSVS builds if and only if _WINDLL is defi…
Browse files Browse the repository at this point in the history
…ned(dll build)
  • Loading branch information
oktonion committed Mar 15, 2021
1 parent 9b14c64 commit fcbcf8a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion need_errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern "C" {
#endif
#endif

#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400
#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_WINDLL)
# undef PTW32_STATIC_LIB
# define PTW32_STATIC_TLSLIB
#endif
Expand Down
2 changes: 1 addition & 1 deletion pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ extern "C"
# error Please upgrade your GNU compiler to one that supports __declspec.
#endif

#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400
#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_WINDLL)
# undef PTW32_STATIC_LIB
# define PTW32_STATIC_TLSLIB
#endif
Expand Down
2 changes: 1 addition & 1 deletion sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
# error Please upgrade your GNU compiler to one that supports __declspec.
#endif

#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400
#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_WINDLL)
# undef PTW32_STATIC_LIB
# define PTW32_STATIC_TLSLIB
#endif
Expand Down
2 changes: 1 addition & 1 deletion semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# error Please upgrade your GNU compiler to one that supports __declspec.
#endif

#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400
#if defined(PTW32_STATIC_LIB) && defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_WINDLL)
# undef PTW32_STATIC_LIB
# define PTW32_STATIC_TLSLIB
#endif
Expand Down

0 comments on commit fcbcf8a

Please sign in to comment.