From c275ef3b3d1f2f4fcf8b2c3614a28f3d9e127e95 Mon Sep 17 00:00:00 2001 From: Joris Aerts Date: Tue, 17 Sep 2013 18:19:22 -0700 Subject: [PATCH] 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 libraries. --- libraries/mbed/api/error.h | 2 +- libraries/mbed/api/mbed_debug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/mbed/api/error.h b/libraries/mbed/api/error.h index d8f576009a..0abe725c16 100644 --- a/libraries/mbed/api/error.h +++ b/libraries/mbed/api/error.h @@ -56,7 +56,7 @@ #include #include "device.h" -#ifdef DEVICE_STDIO_MESSAGES +#if DEVICE_STDIO_MESSAGES #include #define error(...) (fprintf(stderr, __VA_ARGS__), exit(1)) #else diff --git a/libraries/mbed/api/mbed_debug.h b/libraries/mbed/api/mbed_debug.h index 48892c5175..2c8a346738 100644 --- a/libraries/mbed/api/mbed_debug.h +++ b/libraries/mbed/api/mbed_debug.h @@ -21,7 +21,7 @@ extern "C" { #endif -#ifdef DEVICE_STDIO_MESSAGES +#if DEVICE_STDIO_MESSAGES #include #include