diff --git a/include/maxminddb.h b/include/maxminddb.h index 27080669..1455be91 100644 --- a/include/maxminddb.h +++ b/include/maxminddb.h @@ -17,8 +17,6 @@ extern "C" { #include /* 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 diff --git a/src/maxminddb.c b/src/maxminddb.c index 0596568a..4349824e 100644 --- a/src/maxminddb.c +++ b/src/maxminddb.c @@ -23,6 +23,7 @@ #endif #include #include +typedef ADDRESS_FAMILY sa_family_t; #else #include #include