1*0e209d39SAndroid Build Coastguard Worker /* 2*0e209d39SAndroid Build Coastguard Worker * Copyright (C) 2020 The Android Open Source Project 3*0e209d39SAndroid Build Coastguard Worker * 4*0e209d39SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*0e209d39SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*0e209d39SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*0e209d39SAndroid Build Coastguard Worker * 8*0e209d39SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*0e209d39SAndroid Build Coastguard Worker * 10*0e209d39SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*0e209d39SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*0e209d39SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*0e209d39SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*0e209d39SAndroid Build Coastguard Worker * limitations under the License. 15*0e209d39SAndroid Build Coastguard Worker */ 16*0e209d39SAndroid Build Coastguard Worker 17*0e209d39SAndroid Build Coastguard Worker // This file provides preprocessor configuration for libicuuc headers when used in NDK. 18*0e209d39SAndroid Build Coastguard Worker 19*0e209d39SAndroid Build Coastguard Worker #pragma once 20*0e209d39SAndroid Build Coastguard Worker 21*0e209d39SAndroid Build Coastguard Worker // Include API-level tagging facility provided by NDK. 22*0e209d39SAndroid Build Coastguard Worker #include <android/log.h> 23*0e209d39SAndroid Build Coastguard Worker #ifdef __ANDROID__ 24*0e209d39SAndroid Build Coastguard Worker #include <android/versioning.h> 25*0e209d39SAndroid Build Coastguard Worker #endif 26*0e209d39SAndroid Build Coastguard Worker 27*0e209d39SAndroid Build Coastguard Worker #define U_DISABLE_RENAMING 1 28*0e209d39SAndroid Build Coastguard Worker #define U_HIDE_DRAFT_API 1 29*0e209d39SAndroid Build Coastguard Worker #define U_HIDE_DEPRECATED_API 1 30*0e209d39SAndroid Build Coastguard Worker #define U_SHOW_CPLUSPLUS_API 0 31*0e209d39SAndroid Build Coastguard Worker #define U_HIDE_INTERNAL_API 1 32*0e209d39SAndroid Build Coastguard Worker #define U_HIDE_OBSOLETE_UTF_OLD_H 1 33*0e209d39SAndroid Build Coastguard Worker 34*0e209d39SAndroid Build Coastguard Worker // Set this flag to allow header-only C++ usages when using a C++ compiler 35*0e209d39SAndroid Build Coastguard Worker #ifdef __cplusplus 36*0e209d39SAndroid Build Coastguard Worker # ifndef LIBICU_U_SHOW_CPLUSPLUS_API 37*0e209d39SAndroid Build Coastguard Worker # define LIBICU_U_SHOW_CPLUSPLUS_API 1 38*0e209d39SAndroid Build Coastguard Worker # endif 39*0e209d39SAndroid Build Coastguard Worker #else 40*0e209d39SAndroid Build Coastguard Worker # undef LIBICU_U_SHOW_CPLUSPLUS_API 41*0e209d39SAndroid Build Coastguard Worker # define LIBICU_U_SHOW_CPLUSPLUS_API 0 42*0e209d39SAndroid Build Coastguard Worker #endif 43