experiments/include/experimentsconfig.h
Go to the documentation of this file.
00001 /******************************************************************************** 00002 * FARSA Experiments Library * 00003 * Copyright (C) 2007-2012 * 00004 * Gianluca Massera <emmegian@yahoo.it> * 00005 * Stefano Nolfi <stefano.nolfi@istc.cnr.it> * 00006 * Tomassino Ferrauto <tomassino.ferrauto@istc.cnr.it> * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program 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 * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the Free Software * 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 00021 ********************************************************************************/ 00022 00023 #ifndef EXPERIMENTSCONFIG_H 00024 #define EXPERIMENTSCONFIG_H 00025 00034 // FARSA_EXPERIMENTS_TEMPLATE is also for classes that are completely inline 00035 #ifdef WIN32 00036 #define _CRT_SECURE_NO_DEPRECATE 00037 #ifdef FARSA_EXPERIMENTS_BUILDING_DLL 00038 #define FARSA_EXPERIMENTS_API __declspec(dllexport) 00039 #define FARSA_EXPERIMENTS_TEMPLATE __declspec(dllexport) 00040 #else 00041 #define FARSA_EXPERIMENTS_API __declspec(dllimport) 00042 #define FARSA_EXPERIMENTS_TEMPLATE 00043 #endif 00044 #define FARSA_EXPERIMENTS_INTERNAL 00045 #else 00046 #define FARSA_EXPERIMENTS_API 00047 #define FARSA_EXPERIMENTS_TEMPLATE 00048 #define FARSA_EXPERIMENTS_INTERNAL __attribute__ ((visibility ("hidden"))) 00049 #endif 00050 00051 //--- read it as: x.yy.zz where 00052 //--- x is major version 00053 //--- yy is minor version 00054 //--- zz is patch version 00055 //--- Example: version 2.4.6 is 20406 00056 #define FARSA_EXPERIMENTS_VERSION 00600 00057 00058 namespace farsa { 00059 00060 extern bool FARSA_EXPERIMENTS_API initExperimentsLib(); 00061 static const bool experimentsLibInitializer = initExperimentsLib(); 00062 00063 } // end namespace farsa 00064 00065 #include <QtDebug> 00066 00067 #endif