Skip to content

Commit

Permalink
Fixed wrong #pragma warning use.
Browse files Browse the repository at this point in the history
Signed-off-by: raspopov <[email protected]>
  • Loading branch information
raspopov committed Oct 27, 2020
1 parent 6718657 commit 2b0a86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,14 @@ typedef struct __ptw32_cleanup_t __ptw32_cleanup_t;

#if defined(_MSC_VER)
/* Disable MSVC 'anachronism used' warning */
#pragma warning( push )
#pragma warning( disable : 4229 )
#endif

typedef void (* __PTW32_CDECL __ptw32_cleanup_callback_t)(void *);

#if defined(_MSC_VER)
#pragma warning( default : 4229 )
#pragma warning( pop )
#endif

struct __ptw32_cleanup_t
Expand Down

0 comments on commit 2b0a86c

Please sign in to comment.