utilities/include/utilitiesconfig.h

Go to the documentation of this file.
00001 /********************************************************************************
00002  *  FARSA Genetic Algorithm Library                                             *
00003  *  Copyright (C) 2007-2008 Gianluca Massera <emmegian@yahoo.it>                *
00004  *                                                                              *
00005  *  This program is free software; you can redistribute it and/or modify        *
00006  *  it under the terms of the GNU General Public License as published by        *
00007  *  the Free Software Foundation; either version 2 of the License, or           *
00008  *  (at your option) any later version.                                         *
00009  *                                                                              *
00010  *  This program is distributed in the hope that it will be useful,             *
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of              *
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
00013  *  GNU General Public License for more details.                                *
00014  *                                                                              *
00015  *  You should have received a copy of the GNU General Public License           *
00016  *  along with this program; if not, write to the Free Software                 *
00017  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA  *
00018  ********************************************************************************/
00019 
00020 #ifndef UTILITIESCONFIG_H
00021 #define UTILITIESCONFIG_H
00022 
00031 // FARSA_UTIL_TEMPLATE is also for classes that are completely inline
00032 #ifdef WIN32
00033     #define _CRT_SECURE_NO_DEPRECATE
00034     #ifdef FARSA_UTIL_BUILDING_DLL
00035         #define FARSA_UTIL_API __declspec(dllexport)
00036         #define FARSA_UTIL_TEMPLATE __declspec(dllexport)
00037     #else
00038         #define FARSA_UTIL_API __declspec(dllimport)
00039         #define FARSA_UTIL_TEMPLATE
00040     #endif
00041     #define FARSA_UTIL_INTERNAL
00042 #else
00043     #define FARSA_UTIL_API
00044     #define FARSA_UTIL_TEMPLATE
00045     #define FARSA_UTIL_INTERNAL __attribute__ ((visibility ("hidden")))
00046 #endif
00047 
00048 //--- read it as: x.yy.zz where
00049 //---  x  is major version
00050 //---  yy is minor version
00051 //---  zz is patch version
00052 //--- Example: version 2.4.6 is 20406
00053 #define FARSA_UTIL_VERSION 00600
00054 
00055 namespace farsa {
00056 
00057 extern bool FARSA_UTIL_API initUtilitiesLib();
00058 static const bool utilitiesLibInitializer = initUtilitiesLib();
00059 
00060 } // end namespace farsa
00061 
00062 #include <QtDebug>
00063 
00064 #endif