Skip to content

Commit

Permalink
Merge pull request #334 from brimdata/windows-sa_family_t
Browse files Browse the repository at this point in the history
Remove Windows sa_family_t typedef from public header
  • Loading branch information
oschwald authored Jan 2, 2024
2 parents 4a51c94 + e695f1b commit e7367c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions include/maxminddb.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ extern "C" {
#include <ws2tcpip.h>
/* libmaxminddb package version from configure */

typedef ADDRESS_FAMILY sa_family_t;

#if defined(_MSC_VER)
/* MSVC doesn't define signed size_t, copy it from configure */
#define ssize_t SSIZE_T
Expand Down
1 change: 1 addition & 0 deletions src/maxminddb.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#endif
#include <windows.h>
#include <ws2ipdef.h>
typedef ADDRESS_FAMILY sa_family_t;
#else
#include <arpa/inet.h>
#include <sys/mman.h>
Expand Down

0 comments on commit e7367c2

Please sign in to comment.