From 2e17dd2746237084c5b26873cdb1772c0d677418 Mon Sep 17 00:00:00 2001 From: Jason Lokerson Date: Fri, 1 Aug 2014 13:04:28 -0700 Subject: [PATCH] Altered C++11 reference for portability --- autowiring/TeardownNotifier.h | 2 +- autowiring/fast_pointer_cast.h | 2 +- autowiring/thread_specific_ptr.h | 2 +- contrib/C++11/cpp11.h | 34 ++++++++++++++++---------------- contrib/C++11/memory.h | 2 +- src/autowiring/stdafx.h | 2 +- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/autowiring/TeardownNotifier.h b/autowiring/TeardownNotifier.h index fd422a824..f371eea42 100644 --- a/autowiring/TeardownNotifier.h +++ b/autowiring/TeardownNotifier.h @@ -1,6 +1,6 @@ // Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once -#include "C++11/cpp11.h" +#include "contrib/C++11/cpp11.h" #include #include FUNCTIONAL_HEADER diff --git a/autowiring/fast_pointer_cast.h b/autowiring/fast_pointer_cast.h index fc64e442b..89f8114d3 100644 --- a/autowiring/fast_pointer_cast.h +++ b/autowiring/fast_pointer_cast.h @@ -1,6 +1,6 @@ // Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once -#include "C++11/cpp11.h" +#include #include MEMORY_HEADER #include TYPE_TRAITS_HEADER diff --git a/autowiring/thread_specific_ptr.h b/autowiring/thread_specific_ptr.h index 9c371079a..ee884e9bb 100644 --- a/autowiring/thread_specific_ptr.h +++ b/autowiring/thread_specific_ptr.h @@ -1,6 +1,6 @@ // Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once -#include "C++11/cpp11.h" +#include "contrib/C++11/cpp11.h" #include FUNCTIONAL_HEADER // platform specific headers diff --git a/contrib/C++11/cpp11.h b/contrib/C++11/cpp11.h index 3a1debb38..b8b95d3a8 100644 --- a/contrib/C++11/cpp11.h +++ b/contrib/C++11/cpp11.h @@ -70,7 +70,7 @@ * exception_ptr availability *********************/ #if (defined(__APPLE__) && !defined(_LIBCPP_VERSION)) || __ANDROID__ - #define EXCEPTION_PTR_HEADER + #define EXCEPTION_PTR_HEADER #else #define EXCEPTION_PTR_HEADER #define throw_rethrowable throw @@ -82,7 +82,7 @@ #if STL11_ALLOWED #define SYSTEM_ERROR_HEADER #else - #define SYSTEM_ERROR_HEADER + #define SYSTEM_ERROR_HEADER #endif /********************* @@ -91,7 +91,7 @@ #if _MSC_VER >= 1700 || (STL11_ALLOWED && !__ANDROID__) #define FUTURE_HEADER #else - #define FUTURE_HEADER + #define FUTURE_HEADER #endif /** @@ -101,7 +101,7 @@ #if STL11_ALLOWED #define TYPE_INDEX_HEADER #else - #define TYPE_INDEX_HEADER + #define TYPE_INDEX_HEADER #endif /********************* @@ -122,7 +122,7 @@ #define TYPE_TRAITS_HEADER #endif #else - #define TYPE_TRAITS_HEADER + #define TYPE_TRAITS_HEADER #endif /********************* @@ -139,9 +139,9 @@ #endif #if SHARED_PTR_IN_STL && STL11_ALLOWED - #define MEMORY_HEADER + #define MEMORY_HEADER #else - #define MEMORY_HEADER + #define MEMORY_HEADER #endif /********************* @@ -175,7 +175,7 @@ #define FUNCTIONAL_HEADER #define _WEBSOCKETPP_CPP11_FUNCTIONAL_ #else - #define FUNCTIONAL_HEADER + #define FUNCTIONAL_HEADER #endif #ifndef LAMBDAS_AVAILABLE @@ -196,7 +196,7 @@ #if ARRAYS_AVAILABLE #define ARRAY_HEADER #else -#define ARRAY_HEADER +#define ARRAY_HEADER #endif /** @@ -217,7 +217,7 @@ #if !defined(__APPLE__) || __cplusplus >= 201103L #define BOOST_NO_UNICODE_LITERALS 1 #endif - #define RVALUE_HEADER + #define RVALUE_HEADER #endif /** @@ -226,7 +226,7 @@ #if STL11_ALLOWED #define ATOMIC_HEADER #else - #define ATOMIC_HEADER + #define ATOMIC_HEADER #endif /** @@ -235,16 +235,16 @@ #if STL11_ALLOWED #define STL_TUPLE_HEADER #else - #define STL_TUPLE_HEADER + #define STL_TUPLE_HEADER #endif /** * Mutex */ #if STL11_ALLOWED && !__ANDROID__ - #define MUTEX_HEADER + #define MUTEX_HEADER #else - #define MUTEX_HEADER + #define MUTEX_HEADER #endif /** @@ -254,7 +254,7 @@ #define THREAD_HEADER #define _WEBSOCKETPP_CPP11_THREAD_ #else - #define THREAD_HEADER + #define THREAD_HEADER #endif /** @@ -263,7 +263,7 @@ #if STL11_ALLOWED && !__ANDROID__ #define CHRONO_HEADER #else - #define CHRONO_HEADER + #define CHRONO_HEADER #endif /** @@ -272,7 +272,7 @@ #if STL11_ALLOWED #define UTILITY_HEADER #else - #define UTILITY_HEADER + #define UTILITY_HEADER #endif /** diff --git a/contrib/C++11/memory.h b/contrib/C++11/memory.h index 051425ecf..d77031fe4 100644 --- a/contrib/C++11/memory.h +++ b/contrib/C++11/memory.h @@ -2,4 +2,4 @@ #pragma once #include -#include "C++11/make_unique.h" +#include "contrib/C++11/make_unique.h" diff --git a/src/autowiring/stdafx.h b/src/autowiring/stdafx.h index 319f3afe8..0639c9a89 100644 --- a/src/autowiring/stdafx.h +++ b/src/autowiring/stdafx.h @@ -13,4 +13,4 @@ #endif // C++11 glue logic, for platforms that have incomplete C++11 support -#include "C++11/cpp11.h" +#include "contrib/C++11/cpp11.h"