From 191a48d05177c652a36e70fdd929eb9b09e83536 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 7 May 2013 21:22:54 -0600 Subject: [PATCH] Update operating system detection for condition compilation. --- wdq2wav.cpp | 8 ++++---- wdq2wav.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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"); diff --git a/wdq2wav.h b/wdq2wav.h index 6e740f4..a5e5ad2 100644 --- a/wdq2wav.h +++ b/wdq2wav.h @@ -35,14 +35,14 @@ #include #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #include #else #include #endif -#ifdef LINUX +#ifdef __linux__ #include #if __BYTE_ORDER == __BIG_ENDIAN #define WORDS_BIG_ENDIAN 1 -- 2.34.1