ximol/export_defs.hpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002  *                                                                           *
00003  * library XiMoL                                                             *
00004  * Copyright (C) 2002, 2003, 2004 Florent Tournois                           *
00005  *                                                                           *
00006  * This library is free software; you can redistribute it and/or             *
00007  * modify it under the terms of the GNU Lesser General Public                *
00008  * License as published by the Free Software Foundation; either              *
00009  * version 2.1 of the License, or (at your option) any later version.        *
00010  *                                                                           *
00011  * This library is distributed in the hope that it will be useful,           *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00014  * Lesser General Public License for more details.                           *
00015  *                                                                           *
00016  * You should have received a copy of the GNU Lesser General Public          *
00017  * License along with this library; if not, write to the Free Software       *
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA   *
00019  *                                                                           *
00020 \*****************************************************************************/
00021 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00022 /** \file 
00023         \brief Define the export symbol for windows DLL compilation.
00024 
00025         if you want to build the DLL, you must define XIMOL_BUILD.
00026         if you want to use the DLL, you must define XIMOL_USE.
00027 
00028         if you want to build the static librarie, you must define 
00029         XIMOL_STATIC_BUILD.
00030         if you want to use the static librarie, you must define 
00031         XIMOL_STATIC_USE.
00032 
00033         \author Tournois Florent
00034         \version 1.0
00035 
00036     $Id: export_defs.hpp,v 1.8 2004/02/22 10:27:32 tournois Exp $
00037     $Log: export_defs.hpp,v $
00038     Revision 1.8  2004/02/22 10:27:32  tournois
00039     Add some doc.
00040 
00041     Revision 1.7  2004/02/22 09:54:19  tournois
00042     Change years on the copyright.
00043 
00044     Revision 1.6  2004/01/29 20:52:35  tournois
00045     doc and tutorial.
00046 
00047     Revision 1.5  2003/11/27 15:31:55  hfp
00048     partially adapted to vc6.
00049 
00050     Revision 1.4  2003/11/02 19:23:01  tournois
00051     Go to the boost coding standard.
00052     Change all name to lower case.
00053 
00054     Revision 1.3  2003/09/24 08:28:17  tournois
00055     Create the namespace Encoders, Parser, Xml
00056     Change the library organization.
00057     add VC7.1 project for this organization.
00058 
00059   */
00060 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00061 #ifndef XIMOL_EXPORT_DEFS_HPP_
00062 #define XIMOL_EXPORT_DEFS_HPP_
00063 
00064 // win32 dll stuff
00065 #if defined(_WIN32) || defined(WIN32)
00066 #  if defined(XIMOL_BUILD) || defined(XIMOL_EXPORTS)
00067 #    define XIMOL_EXPORT  __declspec(dllexport)
00068 #  else
00069 #    if defined(XIMOL_STATIC_BUILD)
00070 #      define XIMOL_EXPORT
00071 #    else
00072 #      define XIMOL_EXPORT  __declspec(dllimport)
00073 #    endif
00074 #  endif
00075 #else
00076 #  define XIMOL_EXPORT
00077 #endif
00078 
00079 #endif // #define XIMOL_EXPORT_DEFS_HPP_


Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.