Use more consistent name for an option

This commit is contained in:
Dmitry Marakasov 2014-12-18 02:44:16 +03:00
parent 0a72e7206c
commit a727fb4857
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# there are functions present on wiki, but not yet in stable SDL2 releases; # there are functions present on wiki, but not yet in stable SDL2 releases;
# we hide these under following options # we hide these under following options
OPTION(SDL2PP_NEW_2_0_4 "Enable new SDL2 functions present since SDL2 2.0.4" OFF) OPTION(SDL2PP_WITH_2_0_4 "Enable new functions available only in SDL2 2.0.4+" OFF)
OPTION(SDL2PP_WITH_WERROR "Make warnings fatal" OFF) OPTION(SDL2PP_WITH_WERROR "Make warnings fatal" OFF)
IF(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) IF(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)

View File

@ -100,7 +100,7 @@ public:
LockHandle Lock(); LockHandle Lock();
#ifdef SDL2PP_NEW_2_0_4 #ifdef SDL2PP_WITH_2_0_4
void QueueAudio(const void* data, Uint32 len); void QueueAudio(const void* data, Uint32 len);
void ClearQueuedAudio(); void ClearQueuedAudio();
Uint32 GetQueuedAudioSize() const; Uint32 GetQueuedAudioSize() const;

View File

@ -79,7 +79,7 @@ AudioDevice::LockHandle AudioDevice::Lock() {
return LockHandle(this); return LockHandle(this);
} }
#ifdef SDL2PP_NEW_2_0_4 #ifdef SDL2PP_WITH_2_0_4
void AudioDevice::QueueAudio(const void* data, Uint32 len) { void AudioDevice::QueueAudio(const void* data, Uint32 len) {
if (SDL_QueueAudio(device_id_, data, len) == 0) if (SDL_QueueAudio(device_id_, data, len) == 0)
throw Exception("SDL_QueueAudio failed"); throw Exception("SDL_QueueAudio failed");

View File

@ -23,6 +23,6 @@
#define SDL2PP_CONFIG_HH #define SDL2PP_CONFIG_HH
#cmakedefine SDL2PP_WITH_IMAGE #cmakedefine SDL2PP_WITH_IMAGE
#cmakedefine SDL2PP_NEW_2_0_4 #cmakedefine SDL2PP_WITH_2_0_4
#endif #endif