Skip to content

Commit

Permalink
Fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Apr 12, 2019
1 parent 640b4ce commit ebc9d90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion extdll_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ GNU General Public License for more details.


// shut-up compiler warnings
#ifdef MSC_VER
#ifdef _MSC_VER
#pragma warning(disable : 4305) // int or float data truncation
#pragma warning(disable : 4201) // nameless struct/union
#pragma warning(disable : 4514) // unreferenced inline function removed
#pragma warning(disable : 4100) // unreferenced formal parameter
#pragma warning(disable : 4244) // conversion from 'float' to 'int', possible loss of data
#pragma warning(disable : 4520) // multiple default constructors specified
#pragma warning(disable : 4996) // This function or variable may be unsafe
// disable c++11 on old msvc
#if _MSC_VER < 1800
#define MY_COMPILER_SUCKS
#endif
#endif
// Misc C-runtime library headers
#include <assert.h>
Expand Down

0 comments on commit ebc9d90

Please sign in to comment.