Use if instead of ifdef. Is more contiki standard-compliant

This commit is contained in:
Jens Dede 2016-05-02 22:34:58 +02:00
parent 119291d083
commit 59afae85e2
2 changed files with 4 additions and 4 deletions

View File

@ -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 */

View File

@ -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 */