F4_HAL/def: Define NULL instead of including stdio.h.

The definition of NULL is the only reason stdio.h is needed, and including
this standard header clashes with a CC3000 driver's definitions because
the latter wants to redefine built-in macros.  The patch here is the
simplest way to deal with this but the proper fix is really to modify the
CC3000 driver.
This commit is contained in:
Damien George 2017-08-27 21:49:50 +10:00 committed by Damien George
parent ff5b5358e7
commit e7710b396e

View File

@ -47,7 +47,11 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "Legacy/stm32_hal_legacy.h"
#include <stdio.h>
// instead of including stdio.h
#ifndef NULL
#define NULL ((void*)0)
#endif
/* Exported types ------------------------------------------------------------*/