Reland r247589: <webview>: Fix text selection features in mac.
[chromium-blink-merge.git] / third_party / libusb / src / msvc / config.h
blobda476729e7232ce5e34a49e5615f30fb21a42dcb
1 /*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 /* config.h. Manual config for MSVC. */
19 #ifndef _MSC_VER
20 #warn "msvc/config.h shouldn't be included for your development environment."
21 #error "Please make sure the msvc/ directory is removed from your build path."
22 #endif
24 /* Disable: warning C4200: nonstandard extension used : zero-sized array in struct/union */
25 #pragma warning(disable:4200)
26 /* Disable: warning C6258: Using TerminateThread does not allow proper thread clean up */
27 #pragma warning(disable: 6258)
28 #if defined(_PREFAST_)
29 /* Disable "Banned API" errors when using the MS's WDK OACR/Prefast */
30 #pragma warning(disable:28719)
31 /* Disable "The function 'InitializeCriticalSection' must be called from within a try/except block" */
32 #pragma warning(disable:28125)
33 #endif
35 /* Default visibility */
36 #define DEFAULT_VISIBILITY /**/
38 /* Enable global message logging */
39 #define ENABLE_LOGGING 1
41 /* Uncomment to start with debug message logging enabled */
42 // #define ENABLE_DEBUG_LOGGING 1
44 /* type of second poll() argument */
45 #define POLL_NFDS_TYPE unsigned int
47 /* Windows/WinCE backend */
48 #if defined(_WIN32_WCE)
49 #define OS_WINCE 1
50 #define HAVE_MISSING_H
51 #else
52 #define OS_WINDOWS 1
53 #define HAVE_SIGNAL_H 1
54 #define HAVE_SYS_TYPES_H 1
55 #endif