1 /* 2 * Copyright (C) 2020 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 // This file provides preprocessor configuration for libicuuc headers when used in NDK. 18 19 #pragma once 20 21 // Include API-level tagging facility provided by NDK. 22 #include <android/log.h> 23 #ifdef __ANDROID__ 24 #include <android/versioning.h> 25 #endif 26 27 #define U_DISABLE_RENAMING 1 28 #define U_HIDE_DRAFT_API 1 29 #define U_HIDE_DEPRECATED_API 1 30 #define U_SHOW_CPLUSPLUS_API 0 31 #define U_HIDE_INTERNAL_API 1 32 #define U_HIDE_OBSOLETE_UTF_OLD_H 1 33 34 // Set this flag to allow header-only C++ usages when using a C++ compiler 35 #ifdef __cplusplus 36 # ifndef LIBICU_U_SHOW_CPLUSPLUS_API 37 # define LIBICU_U_SHOW_CPLUSPLUS_API 1 38 # endif 39 #else 40 # undef LIBICU_U_SHOW_CPLUSPLUS_API 41 # define LIBICU_U_SHOW_CPLUSPLUS_API 0 42 #endif 43