1 /*Special log.h file for VNDK linking modules*/ 2 /* 3 * Copyright (C) 2005-2017 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 #ifndef _LIBS_CUTIL_LOG_H 18 #define _LIBS_CUTIL_LOG_H 19 20 /* We do not know if developer wanted log/log.h or subset android/log.h */ 21 #include <log/log.h> 22 23 #if defined(__GNUC__) 24 #if defined( __clang__) 25 #pragma GCC diagnostic push 26 #pragma GCC diagnostic warning "-W#warnings" 27 #pragma clang diagnostic push 28 #pragma clang diagnostic ignored "-Wpedantic" 29 #elif (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR > 9)) 30 #pragma GCC diagnostic push 31 #pragma GCC diagnostic warning "-W#warnings" 32 #else 33 #pragma GCC diagnostic push 34 #pragma GCC diagnostic warning "-Wcpp" 35 #endif 36 #endif 37 38 #warning "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" 39 40 #if defined(__GNUC__) 41 #if defined( __clang__) 42 #pragma clang diagnostic pop 43 #endif 44 #pragma GCC diagnostic pop 45 #endif 46 47 #endif /* _LIBS_CUTIL_LOG_H */ 48