File tree 5 files changed +7
-6
lines changed
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2506,7 +2506,7 @@ typedef struct kmp_depend_info {
2506
2506
union {
2507
2507
kmp_uint8 flag; // flag as an unsigned char
2508
2508
struct { // flag as a set of 8 bits
2509
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
2509
+ #if defined( __BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
2510
2510
/* Same fields as in the #else branch, but in reverse order */
2511
2511
unsigned all : 1 ;
2512
2512
unsigned unused : 3 ;
@@ -2671,7 +2671,7 @@ typedef struct kmp_task_stack {
2671
2671
#endif // BUILD_TIED_TASK_STACK
2672
2672
2673
2673
typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
2674
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
2674
+ #if defined( __BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
2675
2675
/* Same fields as in the #else branch, but in reverse order */
2676
2676
#if OMPX_TASKGRAPH
2677
2677
unsigned reserved31 : 6 ;
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ extern void __kmp_validate_locks(void);
120
120
121
121
struct kmp_base_tas_lock {
122
122
// KMP_LOCK_FREE(tas) => unlocked; locked: (gtid+1) of owning thread
123
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __LP64__
123
+ #if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) && \
124
+ __LP64__
124
125
// Flip the ordering of the high and low 32-bit member to be consistent
125
126
// with the memory layout of the address in 64-bit big-endian.
126
127
kmp_int32 depth_locked; // depth locked, for nested locks only
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ typedef struct kmp_depend_info {
50
50
union {
51
51
kmp_uint8 flag ; // flag as an unsigned char
52
52
struct { // flag as a set of 8 bits
53
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
53
+ #if defined( __BYTE_ORDER__ ) && ( __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ )
54
54
unsigned all : 1 ;
55
55
unsigned unused : 3 ;
56
56
unsigned set : 1 ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ typedef struct kmp_depend_info {
47
47
union {
48
48
kmp_uint8 flag ; // flag as an unsigned char
49
49
struct { // flag as a set of 8 bits
50
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
50
+ #if defined( __BYTE_ORDER__ ) && ( __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ )
51
51
unsigned all : 1 ;
52
52
unsigned unused : 3 ;
53
53
unsigned set : 1 ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ typedef struct kmp_depend_info {
17
17
union {
18
18
unsigned char flag;
19
19
struct {
20
- #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
20
+ #if defined( __BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
21
21
unsigned all : 1 ;
22
22
unsigned unused : 3 ;
23
23
unsigned set : 1 ;
You can’t perform that action at this time.
0 commit comments