Skip to content

Commit

Permalink
[core] prevent compile if stack unwinding when exception handling is …
Browse files Browse the repository at this point in the history
…off in MSVC
  • Loading branch information
sorayuki authored and rndi committed Oct 29, 2019
1 parent f2ffe0e commit aaff9d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ modified by
#include <win/wintime.h>
#endif

#ifdef _MSC_VER
#pragma warning(error: 4530)
#endif

using namespace std;
using namespace srt_logging;
extern LogConfig srt_logger_config;
Expand Down

0 comments on commit aaff9d3

Please sign in to comment.