00001 #ifndef PROTON_IMPORT_EXPORT_H 00002 #define PROTON_IMPORT_EXPORT_H 1 00003 00004 /* 00005 * 00006 * Licensed to the Apache Software Foundation (ASF) under one 00007 * or more contributor license agreements. See the NOTICE file 00008 * distributed with this work for additional information 00009 * regarding copyright ownership. The ASF licenses this file 00010 * to you under the Apache License, Version 2.0 (the 00011 * "License"); you may not use this file except in compliance 00012 * with the License. You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, 00017 * software distributed under the License is distributed on an 00018 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00019 * KIND, either express or implied. See the License for the 00020 * specific language governing permissions and limitations 00021 * under the License. 00022 * 00023 */ 00024 00025 // 00026 // Compiler specific mechanisms for managing the import and export of 00027 // symbols between shared objects. 00028 // 00029 // PN_EXPORT - Export declaration 00030 // PN_IMPORT - Import declaration 00031 // 00032 00033 #if defined(WIN32) && !defined(PROTON_DECLARE_STATIC) 00034 // 00035 // Import and Export definitions for Windows: 00036 // 00037 # define PN_EXPORT __declspec(dllexport) 00038 # define PN_IMPORT __declspec(dllimport) 00039 #else 00040 // 00041 // Non-Windows (Linux, etc.) definitions: 00042 // 00043 # define PN_EXPORT __attribute ((visibility ("default"))) 00044 # define PN_IMPORT 00045 #endif 00046 00047 00048 // For core proton library symbols 00049 00050 #ifdef qpid_proton_EXPORTS 00051 # define PN_EXTERN PN_EXPORT 00052 #else 00053 # define PN_EXTERN PN_IMPORT 00054 #endif 00055 00056 00057 #endif /* import_export.h */