gaconfig.h
Go to the documentation of this file.
1 /********************************************************************************
2  * FARSA Genetic Algorithm Library *
3  * Copyright (C) 2007-2008 Gianluca Massera <emmegian@yahoo.it> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
18  ********************************************************************************/
19 
20 #ifndef GACONFIG_H
21 #define GACONFIG_H
22 
31 // FARSA_GA_TEMPLATE is also for classes that are completely inline
32 #ifdef WIN32
33  #define _CRT_SECURE_NO_DEPRECATE
34  #ifdef FARSA_GA_BUILDING_DLL
35  #define FARSA_GA_API __declspec(dllexport)
36  #define FARSA_GA_TEMPLATE __declspec(dllexport)
37  #else
38  #define FARSA_GA_API __declspec(dllimport)
39  #define FARSA_GA_TEMPLATE
40  #endif
41  #define FARSA_GA_INTERNAL
42 #else
43  #define FARSA_GA_API
44  #define FARSA_GA_TEMPLATE
45  #define FARSA_GA_INTERNAL __attribute__ ((visibility ("hidden")))
46 #endif
47 
48 namespace farsa {
49 
50 extern bool FARSA_GA_API initGALib();
51 static const bool GALibInitializer = initGALib();
52 
53 } // end namespace farsa
54 
55 //--- read it as: x.yy.zz where
56 //--- x is major version
57 //--- yy is minor version
58 //--- zz is patch version
59 //--- Example: version 2.4.6 is 20406
60 //--- Actual Version: 0.1.0
61 #define FARSA_GA_VERSION 10203
62 
63 #include <QtDebug>
64 
65 #endif