Decorate declaration rather than definition with export attribute.

This commit is contained in:
oliverschmidt 2008-02-10 11:17:33 +00:00
parent 034bc4ec66
commit d1ad3d0246

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: autostart.h,v 1.4 2008/02/07 15:47:28 oliverschmidt Exp $ * $Id: autostart.h,v 1.5 2008/02/10 11:17:33 oliverschmidt Exp $
*/ */
/** /**
@ -46,7 +46,7 @@
#if ! CC_NO_VA_ARGS #if ! CC_NO_VA_ARGS
#if AUTOSTART_ENABLE #if AUTOSTART_ENABLE
#define AUTOSTART_PROCESSES(...) \ #define AUTOSTART_PROCESSES(...) \
CLIF struct process * const autostart_processes[] = {__VA_ARGS__, NULL} struct process * const autostart_processes[] = {__VA_ARGS__, NULL}
#else /* AUTOSTART_ENABLE */ #else /* AUTOSTART_ENABLE */
#define AUTOSTART_PROCESSES(...) \ #define AUTOSTART_PROCESSES(...) \
extern int _dummy extern int _dummy
@ -55,7 +55,7 @@ extern int _dummy
#error "C compiler must support __VA_ARGS__ macro" #error "C compiler must support __VA_ARGS__ macro"
#endif #endif
extern struct process * const autostart_processes[]; CLIF extern struct process * const autostart_processes[];
void autostart_start(struct process * const processes[]); void autostart_start(struct process * const processes[]);
void autostart_exit(struct process * const processes[]); void autostart_exit(struct process * const processes[]);