OLD | NEW |
| 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. |
| 6 * |
| 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. |
| 11 * |
| 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 |
| 15 */ |
| 16 |
1 /* config.h. Manual config for MSVC. */ | 17 /* config.h. Manual config for MSVC. */ |
2 | 18 |
3 #ifndef _MSC_VER | 19 #ifndef _MSC_VER |
4 #warn "msvc/config.h shouldn't be included for your development environment." | 20 #warn "msvc/config.h shouldn't be included for your development environment." |
5 #error "Please make sure the msvc/ directory is removed from your build path." | 21 #error "Please make sure the msvc/ directory is removed from your build path." |
6 #endif | 22 #endif |
7 | 23 |
| 24 /* Disable: warning C4200: nonstandard extension used : zero-sized array in stru
ct/union */ |
| 25 #pragma warning(disable:4200) |
| 26 /* Disable: warning C6258: Using TerminateThread does not allow proper thread cl
ean 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 |
| 34 |
8 /* Default visibility */ | 35 /* Default visibility */ |
9 #define DEFAULT_VISIBILITY /**/ | 36 #define DEFAULT_VISIBILITY /**/ |
10 | 37 |
11 /* Debug message logging */ | 38 /* Enable global message logging */ |
12 //#define ENABLE_DEBUG_LOGGING 1 | |
13 | |
14 /* Message logging */ | |
15 #define ENABLE_LOGGING 1 | 39 #define ENABLE_LOGGING 1 |
16 | 40 |
17 /* Windows backend */ | 41 /* Uncomment to start with debug message logging enabled */ |
18 #define OS_WINDOWS 1 | 42 // #define ENABLE_DEBUG_LOGGING 1 |
19 | 43 |
20 /* type of second poll() argument */ | 44 /* type of second poll() argument */ |
21 #define POLL_NFDS_TYPE unsigned int | 45 #define POLL_NFDS_TYPE unsigned int |
22 | 46 |
23 /* no way to run git describe from MSVC? */ | 47 /* Windows/WinCE backend */ |
24 #define LIBUSB_DESCRIBE "" | 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 |
OLD | NEW |