mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
imagelib: png: include correct winsock
This commit is contained in:
parent
37f9c25212
commit
505392c2f8
@ -13,15 +13,15 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include <winsock.h>
|
|
||||||
#else
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#endif
|
|
||||||
#define MINIZ_HEADER_FILE_ONLY
|
#define MINIZ_HEADER_FILE_ONLY
|
||||||
#include "miniz.h"
|
#include "miniz.h"
|
||||||
#include "imagelib.h"
|
#include "imagelib.h"
|
||||||
#include "mathlib.h"
|
#include "mathlib.h"
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winsock2.h>
|
||||||
|
#else
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char png_sign[] = {0x89, 'P', 'N', 'G', '\r', '\n', 0x1a, '\n'};
|
static const char png_sign[] = {0x89, 'P', 'N', 'G', '\r', '\n', 0x1a, '\n'};
|
||||||
static const char ihdr_sign[] = {'I', 'H', 'D', 'R'};
|
static const char ihdr_sign[] = {'I', 'H', 'D', 'R'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user