1 /*
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 */
17 #ifndef _BIONIC_OPENBSD_COMPAT_H_included
18 #define _BIONIC_OPENBSD_COMPAT_H_included
20 #include <sys/cdefs.h>
22 #define __USE_BSD
24 /* OpenBSD's <ctype.h> uses these names, which conflicted with stlport.
25 * Additionally, we changed the numeric/digit type from N to D for libcxx.
26 */
27 #define _U _CTYPE_U
28 #define _L _CTYPE_L
29 #define _N _CTYPE_D
30 #define _S _CTYPE_S
31 #define _P _CTYPE_P
32 #define _C _CTYPE_C
33 #define _X _CTYPE_X
34 #define _B _CTYPE_B
36 /* OpenBSD has this, but we can't really implement it correctly on Linux. */
37 #define issetugid() 0
39 /* LP32 NDK ctype.h contained references to these. */
40 __LIBC64_HIDDEN__ extern const short *_tolower_tab_;
41 __LIBC64_HIDDEN__ extern const short *_toupper_tab_;
43 #endif