diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-08-26 15:42:39 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-09-12 22:44:28 -0700 |
commit | da5df37c4d1a2841c6f9cdc626386d096f5f312d (patch) | |
tree | 63f529f2d77e10fb9621052082c5f860b5275564 /android | |
parent | 006ca0fbaa447cac329579d1072304833208358c (diff) | |
download | libusb-da5df37c4d1a2841c6f9cdc626386d096f5f312d.tar.gz |
build: Merge events and threads into single platform abstraction
The split between events and threads abstractions is unnecessary.
Simplify the library by merging the two into a "platform" abstraction.
The only meaningful change is that Cygwin builds will no longer use the
POSIX threads abstraction but will instead use the native Windows one.
The downside to doing this is that the dpfp_threaded example program
will no longer be available on Cygwin builds. This should be fine, and
future work will make dpfp_threaded available for all forms of Windows
build systems.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/config.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/android/config.h b/android/config.h index 4a4b995..12172f6 100644 --- a/android/config.h +++ b/android/config.h @@ -26,9 +26,6 @@ /* Define to 1 to enable message logging. */ #define ENABLE_LOGGING 1 -/* Define to 1 if using the POSIX events abstraction. */ -#define EVENTS_POSIX 1 - /* Define to 1 if you have the <asm/types.h> header file. */ #define HAVE_ASM_TYPES_H 1 @@ -44,8 +41,8 @@ /* Define to 1 if you have the <sys/time.h> header file. */ #define HAVE_SYS_TIME_H 1 -/* Define to 1 if using POSIX threads. */ -#define THREADS_POSIX 1 +/* Define to 1 if compiling for a POSIX platform. */ +#define PLATFORM_POSIX 1 /* Define to 1 to output logging messages to the systemwide log. */ #define USE_SYSTEM_LOGGING_FACILITY 1 |