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.
This commit is contained in:
jp9000 2014-11-26 23:29:04 -08:00
parent 225f597379
commit e3e79dcdc5

View File

@ -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 {