Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions lib/nghttp3_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ nghttp3_max_def(unsigned_int, unsigned int)
nghttp3_max_def(unsigned_short_int, unsigned short int)
nghttp3_max_def(unsigned_char, unsigned char)

#ifdef _MSC_VER
# define nghttp3_max_signed_char_assoc
#else /* !defined(_MSC_VER) */
# define nghttp3_max_signed_char_assoc \
signed char: nghttp3_max_signed_char,
#endif /* !defined(_MSC_VER) */
Comment thread
crazywhalecc marked this conversation as resolved.
Outdated

#define nghttp3_max(A, B) \
_Generic((A), \
long long int: nghttp3_max_long_long_int, \
Expand All @@ -77,15 +84,15 @@ nghttp3_max_def(unsigned_char, unsigned char)
long int: nghttp3_max_long_int, \
int: nghttp3_max_int, \
short int: nghttp3_max_short_int, \
signed char: nghttp3_max_signed_char, \
nghttp3_max_signed_char_assoc \
char: nghttp3_max_char, \
unsigned long long int: nghttp3_max_unsigned_long_long_int, \
unsigned long int: nghttp3_max_unsigned_long_int, \
unsigned int: nghttp3_max_unsigned_int, \
unsigned short int: nghttp3_max_unsigned_short_int, \
unsigned char: nghttp3_max_unsigned_char), \
short int: nghttp3_max_short_int, \
signed char: nghttp3_max_signed_char, \
nghttp3_max_signed_char_assoc \
char: nghttp3_max_char, \
unsigned long long int: nghttp3_max_unsigned_long_long_int, \
unsigned long int: nghttp3_max_unsigned_long_int, \
Expand All @@ -108,6 +115,13 @@ nghttp3_min_def(unsigned_int, unsigned int)
nghttp3_min_def(unsigned_short_int, unsigned short int)
nghttp3_min_def(unsigned_char, unsigned char)

#ifdef _MSC_VER
# define nghttp3_min_signed_char_assoc
#else /* !defined(_MSC_VER) */
# define nghttp3_min_signed_char_assoc \
signed char: nghttp3_min_signed_char,
#endif /* !defined(_MSC_VER) */
Comment thread
crazywhalecc marked this conversation as resolved.
Outdated

#define nghttp3_min(A, B) \
_Generic((A), \
long long int: nghttp3_min_long_long_int, \
Expand All @@ -117,15 +131,15 @@ nghttp3_min_def(unsigned_char, unsigned char)
long int: nghttp3_min_long_int, \
int: nghttp3_min_int, \
short int: nghttp3_min_short_int, \
signed char: nghttp3_min_signed_char, \
nghttp3_min_signed_char_assoc \
char: nghttp3_min_char, \
unsigned long long int: nghttp3_min_unsigned_long_long_int, \
unsigned long int: nghttp3_min_unsigned_long_int, \
unsigned int: nghttp3_min_unsigned_int, \
unsigned short int: nghttp3_min_unsigned_short_int, \
unsigned char: nghttp3_min_unsigned_char), \
short int: nghttp3_min_short_int, \
signed char: nghttp3_min_signed_char, \
nghttp3_min_signed_char_assoc \
char: nghttp3_min_char, \
unsigned long long int: nghttp3_min_unsigned_long_long_int, \
unsigned long int: nghttp3_min_unsigned_long_int, \
Expand Down