Debian Codegraph @

compat/oscap_platforms.h

raw symbols SCIP
1 /*
2 * Copyright 2018 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
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 */
20
21 #ifndef OPENSCAP_OSCAP_PLATFORMS_H
22 #define OPENSCAP_OSCAP_PLATFORMS_H
23
24 #undef OS_FREEBSD
25 #undef OS_LINUX
26 #undef OS_SOLARIS
27 #undef OS_SUNOS
28 #undef OS_WINDOWS
29 #undef OS_AIX
30 #undef OS_APPLE
31 #undef OS_OSX
32
33 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
34 # define OS_FREEBSD
35 #elif defined(__linux__) && defined(__GLIBC__)
36 # define OS_LINUX_WITH_GLIBC
37 #elif defined(__linux__) || defined(OS_LINUX_WITH_GLIBC)
38 # define OS_LINUX
39 #elif defined(sun) || defined(__sun)
40 # define OS_SUN
41 # if defined(__SVR4) || defined(__svr4__)
42 # define OS_SOLARIS
43 # else
44 # define OS_SUNOS
45 # endif
46 #elif defined(_WIN32) || defined(_WIN64)
47 # define OS_WINDOWS
48 #elif defined(_AIX)
49 # define OS_AIX
50 #elif defined(__APPLE__)
51 # define OS_APPLE
52 # if defined(Macintosh) || defined(macintosh) || defined(__MACH__) || defined(__APPLE__)
53 # define OS_OSX
54 # endif
55 #elif defined(_hpux) || defined(hpux) || defined(__hpux)
56 # define OS_HPUX
57 #else
58 # error "Sorry, your OS isn't supported."
59 #endif
60
61 #endif