Debian Codegraph @

src/os-dependent.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2005-2023 Team Kodi (https://kodi.tv)
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 * See LICENSE.md for more information.
6 */
7
8 #pragma once
9
10 #if defined(TARGET_WINDOWS)
11 #define WIN32_LEAN_AND_MEAN // Enable LEAN_AND_MEAN support
12 #define NOMINMAX // don't define min() and max() to prevent a clash with std::min() and std::max
13 #endif
14
15 #if defined(TARGET_WINDOWS)
16 # include "windows/os_windows.h"
17 #else
18 # include "posix/os_posix.h"
19 #endif
20
21 #if defined(TARGET_DARWIN)
22 # ifndef PTHREAD_MUTEX_RECURSIVE_NP
23 # define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
24 # endif
25 #endif