Codechange: remove #ifdef from .cpp files to exclude features

With CMake, these files are simply not compiled to start with.
This commit is contained in:
Patric Stout 2019-04-07 12:02:04 +02:00 committed by glx22
parent 4218ebc932
commit 4d04009d12
4 changed files with 0 additions and 17 deletions

View File

@ -7,8 +7,6 @@
/** @file dmusic.cpp Playing music via DirectMusic. */ /** @file dmusic.cpp Playing music via DirectMusic. */
#ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT
#define INITGUID #define INITGUID
#include "../stdafx.h" #include "../stdafx.h"
#ifdef WIN32_LEAN_AND_MEAN #ifdef WIN32_LEAN_AND_MEAN
@ -1241,6 +1239,3 @@ void MusicDriver_DMusic::SetVolume(byte vol)
{ {
_playback.new_volume = vol; _playback.new_volume = vol;
} }
#endif /* WIN32_ENABLE_DIRECTMUSIC_SUPPORT */

View File

@ -7,8 +7,6 @@
/** @file string_uniscribe.cpp Functions related to laying out text on Win32. */ /** @file string_uniscribe.cpp Functions related to laying out text on Win32. */
#if defined(WITH_UNISCRIBE)
#include "../../stdafx.h" #include "../../stdafx.h"
#include "../../debug.h" #include "../../debug.h"
#include "string_uniscribe.h" #include "string_uniscribe.h"
@ -620,5 +618,3 @@ const int *UniscribeParagraphLayout::UniscribeVisualRun::GetGlyphToCharMap() con
return this->utf16_to_utf8[this->cur_pos]; return this->utf16_to_utf8[this->cur_pos];
} }
#endif /* defined(WITH_UNISCRIBE) */

View File

@ -10,8 +10,6 @@
#ifndef STRING_UNISCRIBE_H #ifndef STRING_UNISCRIBE_H
#define STRING_UNISCRIBE_H #define STRING_UNISCRIBE_H
#if defined(WITH_UNISCRIBE)
#include "../../gfx_layout.h" #include "../../gfx_layout.h"
#include "../../string_base.h" #include "../../string_base.h"
#include <vector> #include <vector>
@ -85,6 +83,4 @@ public:
size_t Prev(IterType what) override; size_t Prev(IterType what) override;
}; };
#endif /* defined(WITH_UNISCRIBE) */
#endif /* STRING_UNISCRIBE_H */ #endif /* STRING_UNISCRIBE_H */

View File

@ -7,8 +7,6 @@
/** @file xaudio2_s.cpp XAudio2 sound driver. */ /** @file xaudio2_s.cpp XAudio2 sound driver. */
#ifdef WITH_XAUDIO2
#include "../stdafx.h" #include "../stdafx.h"
#include "../openttd.h" #include "../openttd.h"
#include "../driver.h" #include "../driver.h"
@ -267,5 +265,3 @@ void SoundDriver_XAudio2::Stop()
FreeLibrary(_xaudio_dll_handle); FreeLibrary(_xaudio_dll_handle);
CoUninitialize(); CoUninitialize();
} }
#endif