Skip to content

Commit

Permalink
Merge pull request contiki-os#292 from darconeous/pull-requests/setti…
Browse files Browse the repository at this point in the history
…ngs-cc-inline-fix

settings: Correct a problem where sometimes CC_INLINE is not defined properly
  • Loading branch information
darconeous committed Jul 2, 2013
2 parents ad34b71 + 0308d3f commit 10f64c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
#include <stdint.h>
#include <string.h>
#include "dev/eeprom.h"
#include "sys/cc.h"

/*****************************************************************************/
// MARK: - Types
Expand Down
3 changes: 3 additions & 0 deletions platform/avr-atmega128rfa1/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ typedef unsigned short uip_stats_t;

#define CCIF
#define CLIF
#ifndef CC_CONF_INLINE
#define CC_CONF_INLINE inline
#endif

/* include the project config */
/* PROJECT_CONF_H might be defined in the project Makefile */
Expand Down
3 changes: 3 additions & 0 deletions platform/avr-raven/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ typedef unsigned short uip_stats_t;

#define CCIF
#define CLIF
#ifndef CC_CONF_INLINE
#define CC_CONF_INLINE inline
#endif

/* include the project config */
/* PROJECT_CONF_H might be defined in the project Makefile */
Expand Down
3 changes: 3 additions & 0 deletions platform/avr-zigbit/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ void clock_adjust_ticks(clock_time_t howmany);

#define CCIF
#define CLIF
#ifndef CC_CONF_INLINE
#define CC_CONF_INLINE inline
#endif

#define RIMEADDR_CONF_SIZE 8
#define PACKETBUF_CONF_HDR_SIZE 0
Expand Down

0 comments on commit 10f64c0

Please sign in to comment.