X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=wdq2wav.cpp;h=be084f8bfb91d39b164b9de0664870c3bdf99234;hb=191a48d05177c652a36e70fdd929eb9b09e83536;hp=bcfd3b69267dfb8932174068efcfa37dc40e729b;hpb=6e0f65ebf4769e7f90e2ef29539cd493de9bf14b;p=wdq2wav.git diff --git a/wdq2wav.cpp b/wdq2wav.cpp index bcfd3b6..be084f8 100644 --- a/wdq2wav.cpp +++ b/wdq2wav.cpp @@ -8,8 +8,6 @@ ** ** Copyright (c) 2003 Kevin Rosenberg ** -** $Id$ -** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as ** published by the Free Software Foundation. @@ -24,6 +22,7 @@ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ +#include #include const char* g_szIdStr = "$Id$"; @@ -61,13 +60,13 @@ const int g_fileMode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; void error_msg (const char *msg) { - std::cerr << msg << "\n"; + std::cerr << msg << std::endl; } void info_msg (const char* msg) { - std::cout << msg << "\n"; + std::cout << msg << std::endl; } void @@ -807,10 +806,10 @@ WavFile::WriteFile () return true; } -#ifdef WIN32 +#ifdef _WIN32 #include #include -#elif defined(LINUX) +#elif defined(__linux__) #include #include #endif @@ -818,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");