2 * Copyright (C) 2024 Mikulas Patocka
4 * This file is part of Ajla.
6 * Ajla is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, either version 3 of the License, or (at your option) any later
11 * Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along with
16 * Ajla. If not, see <https://www.gnu.org/licenses/>.
20 #define EWOULDBLOCK EAGAIN
23 #define THREAD_WIN32_CYGWIN
25 #if defined(DEBUG_THREAD_NONE)
27 #elif ((defined(OS_WIN32) && defined(HAVE__BEGINTHREADEX)) || (defined(OS_CYGWIN) && defined(THREAD_WIN32_CYGWIN) && defined(HAVE_PTHREAD))) && !defined(HAVE_PTHREAD_PREFER)
29 #elif defined(HAVE_PTHREAD)
31 #elif defined(OS_OS2) && (defined(_MT) || defined(__MULTI__) || defined(__MT__))
39 #define INCL_DOSERRORS
46 #if defined(OS_WIN32) || defined(OS_CYGWIN)
47 #define WIN32_LEAN_AND_MEAN
54 #if defined(__WATCOMC__) || defined(_WIN32)
58 #if defined(__STRICT_ANSI__) && !defined(mempcpy)