aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_posix_extensions.h
blob: cda257d1da594fea4d5184a82c7b095b72c8fa38 (plain)
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
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright (c) 2016-2018 Linaro Limited
 */

#ifndef ODP_POSIX_EXTENSIONS_H
#define ODP_POSIX_EXTENSIONS_H

/*
 * This should be the only file to define POSIX extension levels. When
 * extensions are needed it should be included first in each C source file.
 * Header files should not include it.
 */

/*
 * Enable POSIX and GNU extensions
 *
 * This macro defines:
 *   o  _BSD_SOURCE, _SVID_SOURCE, _ATFILE_SOURCE, _LARGEFILE64_SOURCE,
 *      _ISOC99_SOURCE, _XOPEN_SOURCE_EXTENDED, _POSIX_SOURCE
 *   o  _POSIX_C_SOURCE with the value:
 *        * 200809L since  glibc v2.10 (== POSIX.1-2008 base specification)
 *        * 200112L before glibc v2.10 (== POSIX.1-2001 base specification)
 *        * 199506L before glibc v2.5
 *        * 199309L before glibc v2.1
 *   o  _XOPEN_SOURCE with the value:
 *        * 700 since  glibc v2.10
 *        * 600 before glibc v2.10
 *        * 500 before glibc v2.2
 */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#endif