Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/include/stdint.h

    r5587cf7 r9539be6  
    3333#define BOOT_STDINT_H_
    3434
    35 #define INT8_MIN  INT8_C(0x80)
    36 #define INT8_MAX  INT8_C(0x7F)
     35#define INT8_MIN  (0x80)
     36#define INT8_MAX  (0x7F)
    3737
    38 #define UINT8_MIN  UINT8_C(0)
    39 #define UINT8_MAX  UINT8_C(0xFF)
     38#define UINT8_MIN  (0u)
     39#define UINT8_MAX  (0xFFu)
    4040
    41 #define INT16_MIN  INT16_C(0x8000)
    42 #define INT16_MAX  INT16_C(0x7FFF)
     41#define INT16_MIN  (0x8000)
     42#define INT16_MAX  (0x7FFF)
    4343
    44 #define UINT16_MIN  UINT16_C(0)
    45 #define UINT16_MAX  UINT16_C(0xFFFF)
     44#define UINT16_MIN  (0u)
     45#define UINT16_MAX  (0xFFFFu)
    4646
    47 #define INT32_MIN  INT32_C(0x80000000)
    48 #define INT32_MAX  INT32_C(0x7FFFFFFF)
     47#define INT32_MIN  (0x80000000l)
     48#define INT32_MAX  (0x7FFFFFFFl)
    4949
    50 #define UINT32_MIN  UINT32_C(0)
    51 #define UINT32_MAX  UINT32_C(0xFFFFFFFF)
     50#define UINT32_MIN  (0ul)
     51#define UINT32_MAX  (0xFFFFFFFFul)
    5252
    53 #define INT64_MIN  INT64_C(0x8000000000000000)
    54 #define INT64_MAX  INT64_C(0x7FFFFFFFFFFFFFFF)
     53#define INT64_MIN  (0x8000000000000000ll)
     54#define INT64_MAX  (0x7FFFFFFFFFFFFFFFll)
    5555
    56 #define UINT64_MIN  UINT64_C(0)
    57 #define UINT64_MAX  UINT64_C(0xFFFFFFFFFFFFFFFF)
     56#define UINT64_MIN  (0ull)
     57#define UINT64_MAX  (0xFFFFFFFFFFFFFFFFull)
    5858
    5959#endif
Note: See TracChangeset for help on using the changeset viewer.