Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Add an AVR platform config file to Boost.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Pavlik <[email protected]>
  • Loading branch information
rpavlik committed Sep 24, 2012
1 parent e731e71 commit c5a7fe9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions boost/config/platform/avr.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// (C) Copyright Ryan Pavlik 2012
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

// See http://www.boost.org for most recent version.

// AVR (embedded, with avr-libc) config options:
// (Requires a C++ standard library like STLport - https://github.com/vancegroup/stlport-avr/wiki )

#define BOOST_PLATFORM "avr"

// No wchar_t in avr-libc
#define BOOST_NO_INTRINSIC_WCHAR_T

// Asserts don't make sense (or work right) in embedded
#define BOOST_DISABLE_ASSERTS

// Defined by arduino/wiring WString.h
#ifdef F
#undef F
#endif
4 changes: 4 additions & 0 deletions boost/config/select_platform_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
#elif defined(__VMS)
// VMS:
# define BOOST_PLATFORM_CONFIG "boost/config/platform/vms.hpp"

#elif defined(__AVR__)
// AVR embedded:
# define BOOST_PLATFORM_CONFIG "boost/config/platform/avr.hpp"
#else

# if defined(unix) \
Expand Down

0 comments on commit c5a7fe9

Please sign in to comment.