X-Git-Url: http://git.kpe.io/?p=wdq2wav.git;a=blobdiff_plain;f=wdq2wav.cpp;h=be084f8bfb91d39b164b9de0664870c3bdf99234;hp=5c35d4c24620bf5182804ce7816596defe76aace;hb=191a48d05177c652a36e70fdd929eb9b09e83536;hpb=a1f544a495079ea6c0dacf38b82cc711198923da diff --git a/wdq2wav.cpp b/wdq2wav.cpp index 5c35d4c..be084f8 100644 --- a/wdq2wav.cpp +++ b/wdq2wav.cpp @@ -806,10 +806,10 @@ WavFile::WriteFile () return true; } -#ifdef WIN32 +#ifdef _WIN32 #include #include -#elif defined(LINUX) +#elif defined(__linux__) #include #include #endif @@ -817,10 +817,10 @@ WavFile::WriteFile () bool WavFile::Play () { -#ifdef WIN32 +#ifdef _WIN32 if (PlaySound ((LPCSTR) m_data, 0, SND_MEMORY | SND_NODEFAULT)) return true; -#elif defined(LINUX) +#elif defined(__linux__) int fd; if ((fd = open ("/dev/dsp",O_WRONLY)) == -1) { error_msg ("Error opening /dev/dsp");