summaryrefslogtreecommitdiff
path: root/test/sudoku.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-19 14:07:21 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-19 14:07:37 +0200
commitd01aab2ecec3c437300c292536ffa0e91e494d0f (patch)
treee98050a51bb89b7fa897cb05d0d59859a88dea05 /test/sudoku.cxx
parent72901a626c47502b3ab660b8a67ec82698ebe56d (diff)
Replace list of excluded platforms by name of chosen platform.
Since FL/platform.H defines USE_X11 for the X11 platform, it's better to target the X11 platform by #include <FL/platform.H> #if USE_X11 rather than by #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) that would have to grow with future platforms.
Diffstat (limited to 'test/sudoku.cxx')
-rw-r--r--test/sudoku.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sudoku.cxx b/test/sudoku.cxx
index 2f116753f..2a1a14376 100644
--- a/test/sudoku.cxx
+++ b/test/sudoku.cxx
@@ -437,7 +437,7 @@ void SudokuSound::play(char note) {
Sleep(NOTE_DURATION);
} else Beep(frequencies[note - 'A'], NOTE_DURATION);
-#else
+#elif USE_X11
# ifdef HAVE_ALSA_ASOUNDLIB_H
if (handle) {
// Use ALSA to play the sound...