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 #ifndef INCLUDED_cppuhelper_test_testcmp_TestComponent_hxx 25 #define INCLUDED_cppuhelper_test_testcmp_TestComponent_hxx 26 27 #include <sal/types.h> 28 #include <rtl/ustring.hxx> 29 30 #ifdef CPPUHELPER_TEST_COMPONENT_IMPL 31 # define CPPUHELPER_TEST_COMPONENT_EXPORT SAL_DLLPUBLIC_EXPORT 32 33 #elif defined(CPPUHELPER_TEST_COMPONENT_LIB) 34 # define CPPUHELPER_TEST_COMPONENT_EXPORT extern 35 36 #elif defined(__GNUC__) && defined(HAVE_GCC_VISIBILITY_FEATURE) 37 # define CPPUHELPER_TEST_COMPONENT_EXPORT extern __attribute__ ((weak)) 38 39 #elif defined(__SUNPRO_CC) 40 # define CPPUHELPER_TEST_COMPONENT_EXPORT extern 41 extern rtl::OUString g_envDcp; 42 # pragma weak g_envDcp 43 44 #else 45 # define CPPUHELPER_TEST_COMPONENT_EXPORT SAL_DLLPUBLIC_IMPORT 46 47 #endif 48 49 CPPUHELPER_TEST_COMPONENT_EXPORT rtl::OUString g_envDcp; 50 51 52 #endif 53