00001 /* BEGIN_COPYRIGHT */ 00002 /* */ 00003 /* Open Diameter: Open-source software for the Diameter and */ 00004 /* Diameter related protocols */ 00005 /* */ 00006 /* Copyright (C) 2002-2004 Open Diameter Project */ 00007 /* */ 00008 /* This library is free software; you can redistribute it and/or modify */ 00009 /* it under the terms of the GNU Lesser General Public License as */ 00010 /* published by the Free Software Foundation; either version 2.1 of the */ 00011 /* License, or (at your option) any later version. */ 00012 /* */ 00013 /* This library is distributed in the hope that it will be useful, */ 00014 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 00015 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ 00016 /* Lesser General Public License for more details. */ 00017 /* */ 00018 /* You should have received a copy of the GNU Lesser General Public */ 00019 /* License along with this library; if not, write to the Free Software */ 00020 /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 */ 00021 /* USA. */ 00022 /* */ 00023 /* In addition, when you copy and redistribute some or the entire part of */ 00024 /* the source code of this software with or without modification, you */ 00025 /* MUST include this copyright notice in each copy. */ 00026 /* */ 00027 /* If you make any changes that are appeared to be useful, please send */ 00028 /* sources that include the changed part to */ 00029 /* diameter-developers@lists.sourceforge.net so that we can reflect your */ 00030 /* changes to one unified version of this software. */ 00031 /* */ 00032 /* END_COPYRIGHT */ 00033 00034 #ifndef __PANA_EXPORTS_H__ 00035 #define __PANA_EXPORTS_H__ 00036 00037 #include "ace/config-all.h" 00038 00046 #if defined(WIN32) 00047 00048 #include "StdAfx.h" 00049 00050 // The following ifdef block is the standard way of creating macros which make exporting 00051 // from a DLL simpler. All files within this DLL are compiled with the PANA_EXPORTS 00052 // symbol defined on the command line. this symbol should not be defined on any project 00053 // that uses this DLL. This way any other project whose source files include this file see 00054 // PANA_API functions as being imported from a DLL, wheras this DLL sees symbols 00055 // defined with this macro as being exported. 00059 #if defined (WIN32) 00060 # if defined (PANA_EXPORTS) 00061 # define PANA_EXPORT ACE_Proper_Export_Flag 00062 # define PANA_EXPORT_ONLY ACE_Proper_Export_Flag 00063 # define PANA_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) 00064 # define PANA_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) 00065 # else 00066 # define PANA_EXPORT ACE_Proper_Import_Flag 00067 # define PANA_EXPORT_ONLY 00068 # define PANA_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) 00069 # define PANA_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) 00070 # endif /* ! PANA_EXPORTS */ 00071 #else 00072 # define PANA_EXPORT 00073 # define PANA_EXPORT_ONLY 00074 # define PANA_SINGLETON_DECLARATION(T) 00075 # define PANA_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) 00076 #endif /* WIN32 */ 00077 00078 #if _MSC_VER > 1000 00079 #pragma once 00080 #endif // _MSC_VER > 1000 00081 00082 #else 00083 00084 #define PANA_EXPORT // stub only 00085 00086 #endif // WIN32 00087 00088 00089 00090 #endif /* __PANA_EXPORTS_H__ */ 00091