Skip to content

Commit f9d892b

Browse files
author
Ralph Castain
committed
As Nathan pointed out, C99 reserves all _foo identifiers, so rename _WORD_MASK as OPAL_CRC_WORD_MASK
This commit was SVN r31615.
1 parent 87b6c1c commit f9d892b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/util/crc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@
3838

3939

4040
#if (OPAL_ALIGNMENT_LONG == 8)
41-
#define _WORD_MASK_ 0x7
41+
#define OPAL_CRC_WORD_MASK_ 0x7
4242
#elif (OPAL_ALIGNMENT_LONG == 4)
43-
#define _WORD_MASK_ 0x3
43+
#define OPAL_CRC_WORD_MASK_ 0x3
4444
#else
45-
#define _WORD_MASK_ 0xFFFF
45+
#define OPAL_CRC_WORD_MASK_ 0xFFFF
4646
#endif
4747

4848

4949
#define WORDALIGNED(v) \
50-
(((intptr_t)v & _WORD_MASK_) ? false : true)
50+
(((intptr_t)v & OPAL_CRC_WORD_MASK_) ? false : true)
5151

5252

5353
#define INTALIGNED(v) \

0 commit comments

Comments
 (0)