From 9082f83791053509cf25c94584db97586fae635d Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 10 Oct 2016 14:05:59 -0600 Subject: layers: Fix Windows build warnings NOEXCEPT is defined multiple times Change-Id: I9aef970e9588c17071cd71a31873db4090d50b07 --- layers/core_validation.h | 2 ++ layers/core_validation_types.h | 2 ++ layers/descriptor_sets.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/layers/core_validation.h b/layers/core_validation.h index 22ee28dc..be750253 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -21,6 +21,7 @@ * Author: Mark Lobodzinski */ +#ifndef NOEXCEPT // Check for noexcept support #if defined(__clang__) #if __has_feature(cxx_noexcept) @@ -41,6 +42,7 @@ #else #define NOEXCEPT #endif +#endif // Enable mem_tracker merged code #define MTMERGE 1 diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index 9e58c232..82183ffb 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -23,6 +23,7 @@ #ifndef CORE_VALIDATION_TYPES_H_ #define CORE_VALIDATION_TYPES_H_ +#ifndef NOEXCEPT // Check for noexcept support #if defined(__clang__) #if __has_feature(cxx_noexcept) @@ -43,6 +44,7 @@ #else #define NOEXCEPT #endif +#endif #include "vk_safe_struct.h" #include "vulkan/vulkan.h" diff --git a/layers/descriptor_sets.h b/layers/descriptor_sets.h index 35055160..4345154e 100644 --- a/layers/descriptor_sets.h +++ b/layers/descriptor_sets.h @@ -21,6 +21,7 @@ #define CORE_VALIDATION_DESCRIPTOR_SETS_H_ // Check for noexcept support +#ifndef NOEXCEPT #if defined(__clang__) #if __has_feature(cxx_noexcept) #define HAS_NOEXCEPT @@ -40,6 +41,7 @@ #else #define NOEXCEPT #endif +#endif #include "core_validation_error_enums.h" #include "vk_validation_error_messages.h" -- cgit v1.2.3