Containers (STL-compatible) StateMachines MessageBus and more for Embedded Systems. See www.etlcpp.com
profiles/gcc_windows_x86.h@0:b47c2a7920c2, 2018-03-16 (annotated)
- Committer:
- bobbery
- Date:
- Fri Mar 16 16:34:18 2018 +0000
- Revision:
- 0:b47c2a7920c2
Works after using gcc_generic undef CAPACITY and replacing nullptr by std::nullptr
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bobbery | 0:b47c2a7920c2 | 1 | ///\file |
bobbery | 0:b47c2a7920c2 | 2 | |
bobbery | 0:b47c2a7920c2 | 3 | /****************************************************************************** |
bobbery | 0:b47c2a7920c2 | 4 | The MIT License(MIT) |
bobbery | 0:b47c2a7920c2 | 5 | |
bobbery | 0:b47c2a7920c2 | 6 | Embedded Template Library. |
bobbery | 0:b47c2a7920c2 | 7 | https://github.com/ETLCPP/etl |
bobbery | 0:b47c2a7920c2 | 8 | https://www.etlcpp.com |
bobbery | 0:b47c2a7920c2 | 9 | |
bobbery | 0:b47c2a7920c2 | 10 | Copyright(c) 2017 jwellbelove |
bobbery | 0:b47c2a7920c2 | 11 | |
bobbery | 0:b47c2a7920c2 | 12 | Permission is hereby granted, free of charge, to any person obtaining a copy |
bobbery | 0:b47c2a7920c2 | 13 | of this software and associated documentation files(the "Software"), to deal |
bobbery | 0:b47c2a7920c2 | 14 | in the Software without restriction, including without limitation the rights |
bobbery | 0:b47c2a7920c2 | 15 | to use, copy, modify, merge, publish, distribute, sublicense, and / or sell |
bobbery | 0:b47c2a7920c2 | 16 | copies of the Software, and to permit persons to whom the Software is |
bobbery | 0:b47c2a7920c2 | 17 | furnished to do so, subject to the following conditions : |
bobbery | 0:b47c2a7920c2 | 18 | |
bobbery | 0:b47c2a7920c2 | 19 | The above copyright notice and this permission notice shall be included in all |
bobbery | 0:b47c2a7920c2 | 20 | copies or substantial portions of the Software. |
bobbery | 0:b47c2a7920c2 | 21 | |
bobbery | 0:b47c2a7920c2 | 22 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
bobbery | 0:b47c2a7920c2 | 23 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
bobbery | 0:b47c2a7920c2 | 24 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE |
bobbery | 0:b47c2a7920c2 | 25 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
bobbery | 0:b47c2a7920c2 | 26 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
bobbery | 0:b47c2a7920c2 | 27 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
bobbery | 0:b47c2a7920c2 | 28 | SOFTWARE. |
bobbery | 0:b47c2a7920c2 | 29 | ******************************************************************************/ |
bobbery | 0:b47c2a7920c2 | 30 | |
bobbery | 0:b47c2a7920c2 | 31 | #ifndef __ETL_GCC__ |
bobbery | 0:b47c2a7920c2 | 32 | #define __ETL_GCC__ |
bobbery | 0:b47c2a7920c2 | 33 | |
bobbery | 0:b47c2a7920c2 | 34 | //***************************************************************************** |
bobbery | 0:b47c2a7920c2 | 35 | // GCC |
bobbery | 0:b47c2a7920c2 | 36 | //***************************************************************************** |
bobbery | 0:b47c2a7920c2 | 37 | |
bobbery | 0:b47c2a7920c2 | 38 | #include <limits.h> |
bobbery | 0:b47c2a7920c2 | 39 | |
bobbery | 0:b47c2a7920c2 | 40 | #define ETL_TARGET_DEVICE_X86 |
bobbery | 0:b47c2a7920c2 | 41 | #define ETL_TARGET_OS_WINDOWS |
bobbery | 0:b47c2a7920c2 | 42 | #define ETL_COMPILER_GCC |
bobbery | 0:b47c2a7920c2 | 43 | #ifdef __cplusplus |
bobbery | 0:b47c2a7920c2 | 44 | #define ETL_CPP11_SUPPORTED (__cplusplus >= 201103L) |
bobbery | 0:b47c2a7920c2 | 45 | #define ETL_CPP14_SUPPORTED (__cplusplus >= 201402L) |
bobbery | 0:b47c2a7920c2 | 46 | #else |
bobbery | 0:b47c2a7920c2 | 47 | #define ETL_CPP11_SUPPORTED 0 |
bobbery | 0:b47c2a7920c2 | 48 | #define ETL_CPP14_SUPPORTED 0 |
bobbery | 0:b47c2a7920c2 | 49 | #endif |
bobbery | 0:b47c2a7920c2 | 50 | #define ETL_NO_NULLPTR_SUPPORT !ETL_CPP11_SUPPORTED |
bobbery | 0:b47c2a7920c2 | 51 | #define ETL_NO_LARGE_CHAR_SUPPORT !ETL_CPP11_SUPPORTED |
bobbery | 0:b47c2a7920c2 | 52 | #define ETL_CPP11_TYPE_TRAITS_IS_TRIVIAL_SUPPORTED ETL_CPP14_SUPPORTED |
bobbery | 0:b47c2a7920c2 | 53 | #define ETL_ATOMIC_SUPPORTED ETL_CPP11_SUPPORTED |
bobbery | 0:b47c2a7920c2 | 54 | |
bobbery | 0:b47c2a7920c2 | 55 | #endif |
bobbery | 0:b47c2a7920c2 | 56 |