diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c index 49bf3222b6c1f690ac35c30a413a399a5f8cca84..b3aaa40f02cd7f8c59a285d268ad4bfe50db5f3b 100644 --- a/src/xpdev/xpbeep.c +++ b/src/xpdev/xpbeep.c @@ -239,7 +239,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH inc=8.0*atan(1.0); inc *= ((double)freq / (double)S_RATE); -#ifdef MSVC +#ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4244) #endif @@ -276,7 +276,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH break; } } -#ifdef MSVC +#ifdef _MSC_VER #pragma warning(pop) #endif @@ -1160,13 +1160,13 @@ bool xptone(double freq, DWORD duration, enum WAVE_SHAPE shape) freq=17; samples=S_RATE*duration/1000; if(freq) { -#ifdef MSVC +#ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4244) #endif if(samples<=S_RATE/freq*2) samples=S_RATE/freq*2; -#ifdef MSVC +#ifdef _MSC_VER #pragma warning(pop) #endif }