blob: b55f39050209dd4548a8797e67ddc1a8fdd8f9b5 [file] [log] [blame]
Elliott Hughes01339442014-02-20 18:04:58 -08001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _BIONIC_OPENBSD_COMPAT_H_included
18#define _BIONIC_OPENBSD_COMPAT_H_included
19
20#define _GNU_SOURCE
Elliott Hughesad41e9a2014-03-11 15:05:50 -070021#define __USE_BSD
Elliott Hughes01339442014-02-20 18:04:58 -080022
Elliott Hughesf3c73902014-04-18 10:29:16 -070023/* OpenBSD's <ctype.h> uses these names, which conflicted with stlport.
24 * Additionally, we changed the numeric/digit type from N to D for libcxx.
25 */
26#define _U _CTYPE_U
27#define _L _CTYPE_L
28#define _N _CTYPE_D
29#define _S _CTYPE_S
30#define _P _CTYPE_P
31#define _C _CTYPE_C
32#define _X _CTYPE_X
33#define _B _CTYPE_B
34
Elliott Hughes01339442014-02-20 18:04:58 -080035#endif