projects
/
wdq2wav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update operating system detection for condition compilation.
[wdq2wav.git]
/
wdq2wav.cpp
diff --git
a/wdq2wav.cpp
b/wdq2wav.cpp
index 5c35d4c24620bf5182804ce7816596defe76aace..be084f8bfb91d39b164b9de0664870c3bdf99234 100644
(file)
--- a/
wdq2wav.cpp
+++ b/
wdq2wav.cpp
@@
-806,10
+806,10
@@
WavFile::WriteFile ()
return true;
}
return true;
}
-#ifdef WIN32
+#ifdef
_
WIN32
#include <windows.h>
#include <mmsystem.h>
#include <windows.h>
#include <mmsystem.h>
-#elif defined(
LINUX
)
+#elif defined(
__linux__
)
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#endif
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#endif
@@
-817,10
+817,10
@@
WavFile::WriteFile ()
bool
WavFile::Play ()
{
bool
WavFile::Play ()
{
-#ifdef WIN32
+#ifdef
_
WIN32
if (PlaySound ((LPCSTR) m_data, 0, SND_MEMORY | SND_NODEFAULT))
return true;
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");
int fd;
if ((fd = open ("/dev/dsp",O_WRONLY)) == -1) {
error_msg ("Error opening /dev/dsp");