From 1720b31fa810489b72b2e87768edb7b72d749973 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 14 Nov 2005 23:00:35 +0000 Subject: these pragmas are only used for MSVC, not MinGW or Cygwin, therefore changing the define from NT to _MSC_VER svn path=/trunk/externals/zexy/; revision=3904 --- src/zexy.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/zexy.h b/src/zexy.h index a45c3ba..fc599ef 100644 --- a/src/zexy.h +++ b/src/zexy.h @@ -31,8 +31,12 @@ #define INCLUDE_ZEXY_H__ #ifdef __WIN32__ -# define NT -# define MSW +# ifndef NT +# define NT +# endif +# ifndef MSW +# define MSW +# endif #endif #include "m_pd.h" @@ -40,11 +44,14 @@ #define VERSION "2.1" - -#ifdef __WIN32__ +/* these pragmas are only used for MSVC, not MinGW or Cygwin */ +#ifdef _MSC_VER # pragma warning( disable : 4018 ) # pragma warning( disable : 4244 ) # pragma warning( disable : 4305 ) +#endif + +#ifdef __WIN32__ # define HEARTSYMBOL 3 # define STATIC_INLINE # define sqrtf sqrt -- cgit v1.2.1