File: oscap_platforms.h

package info (click to toggle)
openscap 1.4.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 125,116 kB
  • sloc: xml: 527,136; ansic: 91,867; sh: 19,831; python: 2,531; perl: 444; makefile: 49
file content (61 lines) | stat: -rw-r--r-- 1,803 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * Copyright 2018 Red Hat Inc., Durham, North Carolina.
 * All Rights Reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */

#ifndef OPENSCAP_OSCAP_PLATFORMS_H
#define OPENSCAP_OSCAP_PLATFORMS_H

#undef OS_FREEBSD
#undef OS_LINUX
#undef OS_SOLARIS
#undef OS_SUNOS
#undef OS_WINDOWS
#undef OS_AIX
#undef OS_APPLE
#undef OS_OSX

#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# define OS_FREEBSD
#elif defined(__linux__) && defined(__GLIBC__)
# define OS_LINUX_WITH_GLIBC
#elif defined(__linux__) || defined(OS_LINUX_WITH_GLIBC)
# define OS_LINUX
#elif defined(sun) || defined(__sun)
# define OS_SUN
# if defined(__SVR4) || defined(__svr4__)
#  define OS_SOLARIS
# else
#  define OS_SUNOS
# endif
#elif defined(_WIN32) || defined(_WIN64)
# define OS_WINDOWS
#elif defined(_AIX)
# define OS_AIX
#elif defined(__APPLE__)
# define OS_APPLE
# if defined(Macintosh) || defined(macintosh) || defined(__MACH__) || defined(__APPLE__)
#  define OS_OSX
# endif
#elif defined(_hpux) || defined(hpux) || defined(__hpux)
# define OS_HPUX
#else
# error "Sorry, your OS isn't supported."
#endif

#endif