mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-21 14:57:13 +08:00
redirect UNITY_POINTER_WIDTH to define at last catchable moment. Update older gcc targets to be fully explicit.
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
#define ULONG_MAX (sizeof(unsigned long) * 256 - 1)
|
#define ULONG_MAX (sizeof(unsigned long) * 256 - 1)
|
||||||
#endif
|
#endif
|
||||||
#ifndef UINTPTR_MAX
|
#ifndef UINTPTR_MAX
|
||||||
#define UINTPTR_MAX ULONG_MAX //apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1)
|
//apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
@ -100,7 +100,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef UNITY_POINTER_WIDTH
|
#ifndef UNITY_POINTER_WIDTH
|
||||||
#define UNITY_POINTER_WIDTH (32)
|
#define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
@ -24,6 +24,8 @@ compiler:
|
|||||||
- UNITY_EXCLUDE_SIZEOF
|
- UNITY_EXCLUDE_SIZEOF
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
|
- UNITY_INT_WIDTH=32
|
||||||
|
- UNITY_LONG_WIDTH=32
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
|
@ -25,6 +25,8 @@ compiler:
|
|||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
|
- UNITY_INT_WIDTH=32
|
||||||
|
- UNITY_LONG_WIDTH=64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
|
Reference in New Issue
Block a user