* #ifndef NOINIT around NOINIT define.

This commit is contained in:
bg- 2007-05-31 14:24:20 +00:00
parent 81b684414d
commit e1cd724f37
1 changed files with 7 additions and 4 deletions

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: uaodv.c,v 1.25 2007/05/31 10:10:26 bg- Exp $
* $Id: uaodv.c,v 1.26 2007/05/31 14:24:20 bg- Exp $
*/
/**
@ -76,14 +76,17 @@ last_known_seqno(uip_ipaddr_t *host)
return 0;
}
/*
* When possible, keep state across reboots.
*/
#ifndef NOINIT
#ifdef __GNUC__
#define NOINIT __attribute__((section(".noinit")))
#else /* __GNUC__ */
#define NOINIT
#endif /* __GNUC__ */
#endif
/*
* When possible, keep state across reboots.
*/
NOINIT static u32_t rreq_id, my_hseqno; /* In host byte order! */
#define NFWCACHE 16