1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_bridges.hxx"
26 
27 #include <typeinfo>
28 #include <cstddef>
29 
30 #include <uno/any2.h>
31 #include <cppu/macros.hxx>
32 
33 #include "share.hxx"
34 
35 // At least Clang 3.8 can't compile our CPPU_CURRENT_NAMESPACE::__cxa_get_globals()
36 // decleration with <exception> or anything else that indirectly includes <cxxabi.h>
37 // included, as it sees it as a an overload of __cxxabi::__cxa_get_globals() with a
38 // different return type. Thus, it has to be placed in a file that doesn't include
39 // those, and wrapped in a function:
40 namespace CPPU_CURRENT_NAMESPACE
41 {
42   extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
43 
__INTERNAL__cxa_get_globals()44   __cxa_eh_globals *__INTERNAL__cxa_get_globals() throw()
45   {
46     return __cxa_get_globals();
47   }
48 }
49