1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Fix pragma poison sprintf compile errors

This commit is contained in:
Martin Budden 2017-05-28 12:09:27 +01:00
parent a6ba19aa97
commit 6c9ef6df21
3 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,7 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx.h"
#include "Legacy/stm32_hal_legacy.h"
#include <stdio.h>
#include <stddef.h>
/* Exported types ------------------------------------------------------------*/
/**

View file

@ -17,7 +17,7 @@
#pragma once
#if !defined(UNIT_TEST) && !defined(SITL)
#if !defined(UNIT_TEST) && !defined(SITL) && !(USBD_DEBUG_LEVEL > 0)
#pragma GCC poison sprintf snprintf
#endif

View file

@ -51,7 +51,9 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_hal.h"
#if (USBD_DEBUG_LEVEL > 0)
#include <stdio.h>
#endif
#include <stdlib.h>
#include <string.h>