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
Joris Aerts 2013-09-17 18:19:22 -07:00
parent 105c56d38b
commit c275ef3b3d
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
#include <stdlib.h>
#include "device.h"
#ifdef DEVICE_STDIO_MESSAGES
#if DEVICE_STDIO_MESSAGES
#include <stdio.h>
#define error(...) (fprintf(stderr, __VA_ARGS__), exit(1))
#else

View File

@ -21,7 +21,7 @@
extern "C" {
#endif
#ifdef DEVICE_STDIO_MESSAGES
#if DEVICE_STDIO_MESSAGES
#include <stdio.h>
#include <stdarg.h>