From: Robert Pengelly Date: Fri, 24 Oct 2025 01:02:30 +0000 (+0100) Subject: inttyes.h modifications X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;p=sasm.git inttyes.h modifications --- diff --git a/intel.c b/intel.c index abfdb9d..43dc8ed 100644 --- a/intel.c +++ b/intel.c @@ -3214,7 +3214,7 @@ static int intel_parse_operand (char *start, char *operand_string) { switch (intel_state.operand_modifier) { - case EXPR_TYPE_NEAR_PTR: + case EXPR_TYPE_NEAR_PTR: case EXPR_TYPE_FAR_PTR: if (intel_state.segment) { is_absolute_jump = 1; @@ -3224,7 +3224,6 @@ static int intel_parse_operand (char *start, char *operand_string) { break; - case EXPR_TYPE_FAR_PTR: case EXPR_TYPE_ABSENT: if (!intel_state.segment) { diff --git a/inttypes.h b/inttypes.h index b6faa21..34d387c 100644 --- a/inttypes.h +++ b/inttypes.h @@ -2,15 +2,14 @@ * @file inttypes.h *****************************************************************************/ #include -#include #if defined (NO_LONG_LONG) # define I64_FMT "l" -#elif defined (_MSVC_) || defined (__WIN32__) +#elif defined (_MSVC_) # define I64_FMT "I64" #elif defined (__PRI_64_LENGTH_MODIFIER__) /* Mac */ # define I64_FMT __PRI_64_LENGTH_MODIFIER__ -#elif defined (SIZEOF_LONG) && SIZEOF_LONG >= 8 || ULONG_MAX > 4294967295UL +#elif (defined (SIZEOF_LONG) && SIZEOF_LONG >= 8) || ULONG_MAX > 4294967295UL # define I64_FMT "l" #else # define I64_FMT "ll"