cookie_io fixes for gcc-5.3

Using the latest (as of today) gcc-arm-embedded toolchain caused two build
failures similar to:

	error: unknown type name 'cookie_io_functions_t'

These custom IO functions are now protected by a define, so define _GNU_SOURCE
which enables all such areas. This is a libc issue.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
Trevor Woerner
2016-06-17 10:31:56 -04:00
parent 8924042d2a
commit a5641ab63e
2 changed files with 2 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#define _GNU_SOURCE
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/usart.h>

View File

@@ -22,6 +22,7 @@
*
*/
#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <setjmp.h>