blob: 1092f65e51ccc5047a30de5e2e4a95cd942e636e [file] [log] [blame]
Toby Gray7bfbb8b2013-07-09 16:43:53 +01001/*
hjelmn@cs.unm.edu1eff2202014-01-08 23:50:34 +00002 * Android build config for libusb
Toby Gray7bfbb8b2013-07-09 16:43:53 +01003 * Copyright © 2012-2013 RealVNC Ltd. <toby.gray@realvnc.com>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070020/* Define to the attribute for default visibility. */
21#define DEFAULT_VISIBILITY __attribute__ ((visibility ("default")))
Chris Dickensaaff15d2020-01-22 15:53:17 -080022
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070023/* Define to 1 to start with debug message logging enabled. */
Toby Gray7bfbb8b2013-07-09 16:43:53 +010024/* #undef ENABLE_DEBUG_LOGGING */
25
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070026/* Define to 1 to enable message logging. */
27#define ENABLE_LOGGING 1
Toby Gray7bfbb8b2013-07-09 16:43:53 +010028
Chris Dickensaaff15d2020-01-22 15:53:17 -080029/* Define to 1 if you have the <asm/types.h> header file. */
30#define HAVE_ASM_TYPES_H 1
Toby Gray7bfbb8b2013-07-09 16:43:53 +010031
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070032/* Define to 1 if you have the `clock_gettime' function. */
33#define HAVE_CLOCK_GETTIME 1
Chris Dickens30b56ba2020-03-27 00:03:41 -070034
Chris Dickensd5bb64b2020-01-22 17:39:14 -080035/* Define to 1 if the system has the type `nfds_t'. */
36#define HAVE_NFDS_T 1
37
38/* Define to 1 if you have the `pipe2' function. */
39#define HAVE_PIPE2 1
40
Chris Dickensaaff15d2020-01-22 15:53:17 -080041/* Define to 1 if you have the <sys/time.h> header file. */
42#define HAVE_SYS_TIME_H 1
Toby Gray7bfbb8b2013-07-09 16:43:53 +010043
Chris Dickensda5df372020-08-26 15:42:39 -070044/* Define to 1 if compiling for a POSIX platform. */
45#define PLATFORM_POSIX 1
Toby Gray7bfbb8b2013-07-09 16:43:53 +010046
Chris Dickensf2e551a2020-11-27 15:22:29 -080047/* Define to the attribute for enabling parameter checks on printf-like
48 functions. */
49#define PRINTF_FORMAT(a, b) __attribute__ ((__format__ (__printf__, a, b)))
50
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070051/* Define to 1 to output logging messages to the systemwide log. */
Chris Dickensaaff15d2020-01-22 15:53:17 -080052#define USE_SYSTEM_LOGGING_FACILITY 1
Chris Dickens9a1bc8c2020-03-30 12:28:11 -070053
54/* Enable GNU extensions. */
55#define _GNU_SOURCE 1