mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1014626 - Fix Windows 64 build break
This commit is contained in:
parent
dfcd2ea785
commit
1bfb005447
@ -1,39 +1,39 @@
|
|||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
#ifndef IN_H_
|
#ifndef IN_H_
|
||||||
#define IN_H_
|
#define IN_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if defined(_M_IX86)
|
#if defined(_M_IX86) || defined(_M_AMD64)
|
||||||
|
|
||||||
static uint32_t
|
static uint32_t
|
||||||
ntohl(uint32_t x)
|
ntohl(uint32_t x)
|
||||||
{
|
{
|
||||||
return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24;
|
return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t
|
static uint16_t
|
||||||
ntohs(uint16_t x)
|
ntohs(uint16_t x)
|
||||||
{
|
{
|
||||||
return x << 8 | x >> 8;
|
return x << 8 | x >> 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t
|
static uint32_t
|
||||||
htonl(uint32_t x)
|
htonl(uint32_t x)
|
||||||
{
|
{
|
||||||
return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24;
|
return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t
|
static uint16_t
|
||||||
htons(uint16_t x)
|
htons(uint16_t x)
|
||||||
{
|
{
|
||||||
return x << 8 | x >> 8;
|
return x << 8 | x >> 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Unsupported architecture
|
#error Unsupported architecture
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user