Stack alignment change doesn't compile on VC++
This commit is contained in:
@@ -43,15 +43,16 @@
|
|||||||
#define BT_STACK_SIZE 500
|
#define BT_STACK_SIZE 500
|
||||||
#define DEBUG_STACK_SIZE 500
|
#define DEBUG_STACK_SIZE 500
|
||||||
|
|
||||||
OS_TID menusTaskId;
|
#if defined(_MSC_VER)
|
||||||
#if !defined(SIMU)
|
#define _ALIGNED(x) __declspec(align(x))
|
||||||
// stack must be alligned to 8 bytes otherwise printf for %f does not work!
|
#elif defined(__GNUC__)
|
||||||
OS_STK __attribute__((aligned(8))) menusStack[MENUS_STACK_SIZE];
|
#define _ALIGNED(x) __attribute__ ((aligned(x)))
|
||||||
#else
|
|
||||||
// but VC++ doesn't like the aligned keyword, so keep it as is on simu (which works)
|
|
||||||
OS_STK menusStack[MENUS_STACK_SIZE];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
OS_TID menusTaskId;
|
||||||
|
// stack must be aligned to 8 bytes otherwise printf for %f does not work!
|
||||||
|
OS_STK _ALIGNED(8) menusStack[MENUS_STACK_SIZE];
|
||||||
|
|
||||||
OS_TID mixerTaskId;
|
OS_TID mixerTaskId;
|
||||||
OS_STK mixerStack[MIXER_STACK_SIZE];
|
OS_STK mixerStack[MIXER_STACK_SIZE];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user