message: Fix Windows build issue and correct formatting of comments
diff: @@ -16,8 +16,8 @@ limitations under the License.
  #ifndef BYTE_SWAP_H
  #define BYTE_SWAP_H
  -#include "tensorflow/core/lib/core/status.h"
  #include "tensorflow/core/framework/tensor.h"
  +#include "tensorflow/core/lib/core/status.h"
  #include "tensorflow/core/platform/byte_order.h"
  @@ -37,11 +37,20 @@ limitations under the License.
  #define BYTE_SWAP_32(x) bswap_32 (x)
  #define BYTE_SWAP_64(x) bswap_64 (x)
  +#elif defined(PLATFORM_WINDOWS)
  +
  +// On windows, byte-swapping is in winsock.h, and there is a version of htonl
  +// that can byte-swap 64-bit values
  +#include <winsock.h>
  +#define BYTE_SWAP_16(x) htons (x)
  +#define BYTE_SWAP_32(x) htonl (x)
  +#define BYTE_SWAP_64(x) htonll (x)
  +
  #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
  -// On non-Linux, but little-endian, environments, use htonl/s, which byte-swap
  -// when the host byte order is little-endian. POSIX doesn't define a 64-bit
  -// version of these library functions, so we roll our own.
  +// On non-Linux, non-Windows, but little-endian, environments, use htonl/s,
  +// which byte-swap when the host byte order is little-endian. POSIX doesn't
  +// define a 64-bit version of these library functions, so we roll our own.
  #include <arpa/inet.h>
  #define BYTE_SWAP_16(x) htons (x)
  #define BYTE_SWAP_32(x) htonl (x)
  @@ -50,7 +59,8 @@ limitations under the License.
  | (htonl(((x) & 0xffffffff00000000UL) >> 32)) \
  )
  -#else // not defined(__linux__) and (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
  +#else // not defined(__linux__) and not defined(PLATFORM_WINDOWS)
  + // and (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
  // Fall back on a non-optimized implementation on other big-endian targets.
  // This code swaps one byte at a time and is probably an order of magnitude
  