Skip to content

Commit

Permalink
[MISC] fix compiling error for MSVC. 'FALL_THROUGH': undeclared ident… (
Browse files Browse the repository at this point in the history
#66)

* [MISC] fix compiling error for MSVC. 'FALL_THROUGH': undeclared identifier

* [MISC] fix compiling error for MSVC. 'FALL_THROUGH': undeclared identifier
  • Loading branch information
zero-rp authored Sep 25, 2024
1 parent ab94342 commit 1bb5285
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lsqpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ SOFTWARE.
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))

#ifdef _MSC_VER
# define FALL_THROUGH
#endif

#ifndef FALL_THROUGH
# if defined __has_attribute && __has_attribute (fallthrough)
# define FALL_THROUGH __attribute__ ((fallthrough))
Expand Down

0 comments on commit 1bb5285

Please sign in to comment.