ec833c36da40fac650f22ed8bc685f0e43230e43
[platform/upstream/libnice.git] / stun / win32_common.h
1 /*
2  * This file is part of the Nice GLib ICE library.
3  *
4  * (C) 2008-2009 Collabora Ltd.
5  *  Contact: Youness Alaoui
6  * (C) 2008-2009 Nokia Corporation. All rights reserved.
7  *
8  * The contents of this file are subject to the Mozilla Public License Version
9  * 1.1 (the "License"); you may not use this file except in compliance with
10  * the License. You may obtain a copy of the License at
11  * http://www.mozilla.org/MPL/
12  *
13  * Software distributed under the License is distributed on an "AS IS" basis,
14  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
15  * for the specific language governing rights and limitations under the
16  * License.
17  *
18  * The Original Code is the Nice GLib ICE library.
19  *
20  * The Initial Developers of the Original Code are Collabora Ltd and Nokia
21  * Corporation. All Rights Reserved.
22  *
23  * Contributors:
24  *   Youness Alaoui, Collabora Ltd.
25  *   Danny Smith
26  *
27  * Alternatively, the contents of this file may be used under the terms of the
28  * the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
29  * case the provisions of LGPL are applicable instead of those above. If you
30  * wish to allow use of your version of this file only under the terms of the
31  * LGPL and not to allow others to use your version of this file under the
32  * MPL, indicate your decision by deleting the provisions above and replace
33  * them with the notice and other provisions required by the LGPL. If you do
34  * not delete the provisions above, a recipient may use your version of this
35  * file under either the MPL or the LGPL.
36  */
37
38 /* ISO C9x  7.18  Integer types <stdint.h>
39  * Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
40  *
41  *  THIS SOFTWARE IS NOT COPYRIGHTED
42  *
43  *  Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
44  *
45  *  This source code is offered for use in the public domain. You may
46  *  use, modify or distribute it freely.
47  *
48  *  This code is distributed in the hope that it will be useful but
49  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
50  *  DISCLAIMED. This includes but is not limited to warranties of
51  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52  *
53  *  Date: 2000-12-02
54  */
55
56
57 #ifndef _WIN32_COMMON_H
58 #define _WIN32_COMMON_H
59
60 #include <sys/types.h>
61 #include <stdint.h>
62 #include <stdbool.h>
63
64 /* On MSVC, ssize_t is SSIZE_T */
65 #ifdef _MSC_VER
66 #include <BaseTsd.h>
67 #define ssize_t SSIZE_T
68 #endif
69
70 /* Windows v10.0.16232 SDK defines MSG_ERRQUEUE, but doesn't support it with
71  * recvmsg, and also uses a different msghdr struct */
72 #undef MSG_ERRQUEUE
73
74 #endif /* _WIN32_COMMON_H */