mirror of https://github.com/ARMmbed/mbed-os.git
Replace #ifdef with #if DEVICE_STDIO_MESSAGES
DEVICE_STDIO_MESSAGES is the only #define in device.h that is being used in the library as #ifdef rather than #if. This is misleading since setting it to 0 will not disable including the <stdio.h> libraries.pull/70/head
parent
105c56d38b
commit
c275ef3b3d
|
@ -56,7 +56,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|
||||||
#ifdef DEVICE_STDIO_MESSAGES
|
#if DEVICE_STDIO_MESSAGES
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define error(...) (fprintf(stderr, __VA_ARGS__), exit(1))
|
#define error(...) (fprintf(stderr, __VA_ARGS__), exit(1))
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEVICE_STDIO_MESSAGES
|
#if DEVICE_STDIO_MESSAGES
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue