Skip to content
Snippets Groups Projects
Commit 1c47d84c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

_MSC_VER is the macro name you're looking for there :-)

parent 1dd71e49
No related branches found
No related tags found
No related merge requests found
Pipeline #5739 passed
...@@ -239,7 +239,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH ...@@ -239,7 +239,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH
inc=8.0*atan(1.0); inc=8.0*atan(1.0);
inc *= ((double)freq / (double)S_RATE); inc *= ((double)freq / (double)S_RATE);
#ifdef MSVC #ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4244) #pragma warning(disable : 4244)
#endif #endif
...@@ -276,7 +276,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH ...@@ -276,7 +276,7 @@ void xptone_makewave(double freq, unsigned char *wave, int samples, enum WAVE_SH
break; break;
} }
} }
#ifdef MSVC #ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif #endif
...@@ -1160,13 +1160,13 @@ bool xptone(double freq, DWORD duration, enum WAVE_SHAPE shape) ...@@ -1160,13 +1160,13 @@ bool xptone(double freq, DWORD duration, enum WAVE_SHAPE shape)
freq=17; freq=17;
samples=S_RATE*duration/1000; samples=S_RATE*duration/1000;
if(freq) { if(freq) {
#ifdef MSVC #ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4244) #pragma warning(disable : 4244)
#endif #endif
if(samples<=S_RATE/freq*2) if(samples<=S_RATE/freq*2)
samples=S_RATE/freq*2; samples=S_RATE/freq*2;
#ifdef MSVC #ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment