ga/include/gaconfig.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 GACONFIG_H
00021 #define GACONFIG_H
00022 
00031 // FARSA_GA_TEMPLATE is also for classes that are completely inline
00032 #ifdef WIN32
00033     #define _CRT_SECURE_NO_DEPRECATE
00034     #ifdef FARSA_GA_BUILDING_DLL
00035         #define FARSA_GA_API __declspec(dllexport)
00036         #define FARSA_GA_TEMPLATE __declspec(dllexport)
00037     #else
00038         #define FARSA_GA_API __declspec(dllimport)
00039         #define FARSA_GA_TEMPLATE
00040     #endif
00041     #define FARSA_GA_INTERNAL
00042 #else
00043     #define FARSA_GA_API
00044     #define FARSA_GA_TEMPLATE
00045     #define FARSA_GA_INTERNAL __attribute__ ((visibility ("hidden")))
00046 #endif
00047 
00048 namespace farsa {
00049 
00050 extern bool FARSA_GA_API initGALib();
00051 static const bool GALibInitializer = initGALib();
00052 
00053 } // end namespace farsa
00054 
00055 //--- read it as: x.yy.zz where
00056 //---  x  is major version
00057 //---  yy is minor version
00058 //---  zz is patch version
00059 //--- Example: version 2.4.6 is 20406
00060 //--- Actual Version: 0.1.0
00061 #define FARSA_GA_VERSION 00600
00062 
00063 #include <QtDebug>
00064 
00065 #endif