Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers platform.h Source File

platform.h

Go to the documentation of this file.
00001 ///\file
00002 
00003 /******************************************************************************
00004 The MIT License(MIT)
00005 
00006 Embedded Template Library.
00007 https://github.com/ETLCPP/etl
00008 https://www.etlcpp.com
00009 
00010 Copyright(c) 2016 jwellbelove
00011 
00012 Permission is hereby granted, free of charge, to any person obtaining a copy
00013 of this software and associated documentation files(the "Software"), to deal
00014 in the Software without restriction, including without limitation the rights
00015 to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
00016 copies of the Software, and to permit persons to whom the Software is
00017 furnished to do so, subject to the following conditions :
00018 
00019 The above copyright notice and this permission notice shall be included in all
00020 copies or substantial portions of the Software.
00021 
00022 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00023 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00024 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
00025 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00026 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00027 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00028 SOFTWARE.
00029 ******************************************************************************/
00030 
00031 #ifndef __ETL_PLATFORM__
00032 #define __ETL_PLATFORM__
00033 
00034 // Some targets do not support 8bit types.
00035 #define ETL_8BIT_SUPPORT (CHAR_BIT == 8)
00036 
00037 #if defined(_DEBUG) || defined(DEBUG)
00038   #define ETL_DEBUG
00039 #endif
00040 
00041 #undef ETL_CPP11_SUPPORTED
00042 #undef ETL_CPP14_SUPPORTED
00043 #undef ETL_NO_NULLPTR_SUPPORT
00044 #undef ETL_NO_LARGE_CHAR_SUPPORT
00045 #undef ETL_CPP11_TYPE_TRAITS_IS_TRIVIAL_SUPPORTED
00046 #undef ETL_ATOMIC_SUPPORTED
00047 
00048 #include "etl_profile.h "
00049 
00050 #if ETL_CPP11_SUPPORTED
00051   #define ETL_CONSTEXPR constexpr
00052 #else
00053   #define ETL_CONSTEXPR
00054 #endif
00055 
00056 #endif
00057