commit | 59cbe8d10750a0577c3ea999b2dd90bf0a05ffe6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jul 29 17:49:27 2015 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Jul 29 17:49:27 2015 -0700 |
tree | 0432772e3b9e8f70efd25c899c0286d713fe65ad | |
parent | 84a04d52e7118f67e9a099fdbf55111f1c7a9010 [diff] |
Use _WIN32 rather than HAVE_WINSOCK. Change-Id: I0821d2af8473c359e8b73aec455000cb7c42f690
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index fbe08ec..8363810 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp
@@ -47,7 +47,7 @@ namespace android { -#ifdef HAVE_WINSOCK +#if defined(_WIN32) #undef nhtol #undef htonl #define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & 0xff00) )