fix identify_loops so that it actually identifies loops
[ajla.git] / cfg.h
blob5d6c36c7f8d025369c69e9a7f6ebdcebd474fd1c
1 /*
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
9 * version.
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/>.
19 #ifndef EWOULDBLOCK
20 #define EWOULDBLOCK EAGAIN
21 #endif
23 #define THREAD_WIN32_CYGWIN
25 #if defined(DEBUG_THREAD_NONE)
26 #define THREAD_NONE
27 #elif ((defined(OS_WIN32) && defined(HAVE__BEGINTHREADEX)) || (defined(OS_CYGWIN) && defined(THREAD_WIN32_CYGWIN) && defined(HAVE_PTHREAD))) && !defined(HAVE_PTHREAD_PREFER)
28 #define THREAD_WIN32
29 #elif defined(HAVE_PTHREAD)
30 #define THREAD_POSIX
31 #elif defined(OS_OS2) && (defined(_MT) || defined(__MULTI__) || defined(__MT__))
32 #define THREAD_OS2
33 #else
34 #define THREAD_NONE
35 #endif
37 #if defined(OS_OS2)
38 #define INCL_DOS
39 #define INCL_DOSERRORS
40 #define INCL_KBD
41 #define INCL_MOU
42 #define INCL_VIO
43 #include <os2.h>
44 #endif
46 #if defined(OS_WIN32) || defined(OS_CYGWIN)
47 #define WIN32_LEAN_AND_MEAN
48 #include <windows.h>
49 #endif
50 #if defined(OS_WIN32)
51 #include <winsock.h>
52 #endif
54 #if defined(__WATCOMC__) || defined(_WIN32)
55 #include <process.h>
56 #endif
58 #if defined(__STRICT_ANSI__) && !defined(mempcpy)
59 #undef HAVE_MEMPCPY
60 #endif