Simplification of conditional compilation suggested by pn_bouteville

This commit is contained in:
Gregory Nutt 2014-10-07 15:44:54 -06:00
parent 53ff25aacc
commit 792e40f513

View File

@ -427,12 +427,16 @@ void up_lowputc(char ch);
void up_puts(const char *str); void up_puts(const char *str);
void up_lowputs(const char *str); void up_lowputs(const char *str);
#if CONFIG_NFILE_DESCRIPTORS > 0 #if USE_SERIALDRIVER
void up_earlyserialinit(void);
void up_serialinit(void); void up_serialinit(void);
#else #else
# define up_earlyserialinit() # define up_serialinit()
# define up_serialinit() #endif
#if USE_EARLYSERIALINIT
void up_earlyserialinit(void);
#else
# define up_earlyserialinit()
#endif #endif
/* Defined in drivers/lowconsole.c */ /* Defined in drivers/lowconsole.c */