Skip to content

Commit

Permalink
adding macro define for strncasecmp function for MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 30, 2024
1 parent 2acdf8a commit c4a460e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/client/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#ifdef _WIN32
# include <cctype>
# include <winsock2.h> // must be included before connection.h to avoid macro redefinition in rpc/types.h
# ifdef _MSC_VER
# define strncasecmp _strnicmp
# endif
#endif

#endif

#include "connection.h"
Expand Down

0 comments on commit c4a460e

Please sign in to comment.