1*c1ed826dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c1ed826dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c1ed826dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c1ed826dSAndrew Rist * distributed with this work for additional information 6*c1ed826dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c1ed826dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c1ed826dSAndrew Rist * "License"); you may not use this file except in compliance 9*c1ed826dSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*c1ed826dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*c1ed826dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c1ed826dSAndrew Rist * software distributed under the License is distributed on an 15*c1ed826dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c1ed826dSAndrew Rist * KIND, either express or implied. See the License for the 17*c1ed826dSAndrew Rist * specific language governing permissions and limitations 18*c1ed826dSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*c1ed826dSAndrew Rist *************************************************************/ 21*c1ed826dSAndrew Rist 22*c1ed826dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INCLUDED_WARNINGS_GUARD_UNICODE_REGEX_H 25cdf0e10cSrcweir #define INCLUDED_WARNINGS_GUARD_UNICODE_REGEX_H 26cdf0e10cSrcweir 27cdf0e10cSrcweir // Because the GCC system_header mechanism doesn't work in .c/.cxx compilation 28cdf0e10cSrcweir // units and more important affects the rest of the current include file, the 29cdf0e10cSrcweir // warnings guard is separated into this header file on its own. 30cdf0e10cSrcweir 31cdf0e10cSrcweir // External unicode includes (from icu) cause warning C4668 on Windows. 32cdf0e10cSrcweir // We want to minimize the patches to external headers, so the warnings are 33cdf0e10cSrcweir // disabled here instead of in the header file itself. 34cdf0e10cSrcweir #ifdef _MSC_VER 35cdf0e10cSrcweir #pragma warning(push, 1) 36cdf0e10cSrcweir #elif defined __GNUC__ 37cdf0e10cSrcweir #pragma GCC system_header 38cdf0e10cSrcweir #endif 39cdf0e10cSrcweir #include <unicode/regex.h> 40cdf0e10cSrcweir #ifdef _MSC_VER 41cdf0e10cSrcweir #pragma warning(pop) 42cdf0e10cSrcweir #endif 43cdf0e10cSrcweir 44cdf0e10cSrcweir #endif // INCLUDED_WARNINGS_GUARD_UNICODE_REGEX_H 45