1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #if OSL_DEBUG_LEVEL <= 3
25 # define _WIN32_WINNT 0x0400
26 # define _CTYPE_DISABLE_MACROS /* wg. dynamischer C-Runtime MH */
38 #include <sys/types.h>
44 /* Must define this else build breaks because Winsock2.h
45 includes Windows.h and without WIN32_LEAN_AND_MEAN
46 also includes mswsock.h which needs a forward typedef
49 #define WIN32_LEAN_AND_MEAN
52 // windows.h includes winsock2.h
53 // if _WIN32_WINNT > 0x0400
54 // so someone cannot include winsock.h
55 // at the same time without patching
71 // winsock2.h includes windows.h
72 #pragma warning(push,1) /* disable warnings within system headers */
73 #pragma warning(disable:4917)
84 # ifndef SA_FAMILY_DECL
85 # define SA_FAMILY_DECL short sa_family
88 typedef struct sockaddr_ipx
{
92 unsigned short sa_socket
;
95 # define NSPROTO_IPX 1000
96 # define NSPROTO_SPX 1256
97 # define NSPROTO_SPXII 1257
98 #endif // #ifdef __GNUC__
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */