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 <stdio.h>
|
||||||
#include "dev/uart0.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 */
|
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||||
int
|
int
|
||||||
putchar(int c)
|
putchar(int c)
|
||||||
|
@ -9,4 +9,4 @@ putchar(int c)
|
||||||
uart0_writeb((char)c);
|
uart0_writeb((char)c);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "dev/uart1.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 */
|
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||||
int
|
int
|
||||||
putchar(int c)
|
putchar(int c)
|
||||||
|
@ -9,4 +9,4 @@ putchar(int c)
|
||||||
uart1_writeb((char)c);
|
uart1_writeb((char)c);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||||
|
|
Loading…
Reference in a new issue