提交 e3e79dcd 编写于 作者: J jp9000

libobs: Fix windows warnings with C library macro

The macro INFINITY apparently will trigger a warning with microsoft's
compiler despite being a C standard library macro.
上级 225f5973
......@@ -24,6 +24,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "obs-audio-controls.h"
/* These are pointless warnings generated not by our code, but by a standard
* library macro, INFINITY */
#ifdef _MSC_VER
#pragma warning(disable : 4056)
#pragma warning(disable : 4756)
#endif
typedef float (*obs_fader_conversion_t)(const float val);
struct obs_fader {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册