mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-11 08:23:42 +00:00
Use if instead of ifdef. Is more contiki standard-compliant
This commit is contained in:
parent
119291d083
commit
59afae85e2
@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "dev/uart0.h"
|
||||
|
||||
#ifndef NETSTACK_CONF_WITH_IPV4
|
||||
#if !NETSTACK_CONF_WITH_IPV4
|
||||
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||
int
|
||||
putchar(int c)
|
||||
@ -9,4 +9,4 @@ putchar(int c)
|
||||
uart0_writeb((char)c);
|
||||
return c;
|
||||
}
|
||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
||||
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "dev/uart1.h"
|
||||
|
||||
#ifndef NETSTACK_CONF_WITH_IPV4
|
||||
#if !NETSTACK_CONF_WITH_IPV4
|
||||
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||
int
|
||||
putchar(int c)
|
||||
@ -9,4 +9,4 @@ putchar(int c)
|
||||
uart1_writeb((char)c);
|
||||
return c;
|
||||
}
|
||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
||||
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||
|
Loading…
Reference in New Issue
Block a user