Small cleanup in boss Ouro script.
[scriptdev2-git.git] / config.h
blobbb3caf880a3c4c3267ef2ee93825a887e0b45bfc
1 /*
2 * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef SC_CONFIG_H
20 #define SC_CONFIG_H
22 #include "Platform/CompilerDefs.h"
23 #include "revision.h"
25 // Format is YYYYMMDDRR where RR is the change in the conf file
26 // for that day.
27 #define SD2_CONF_VERSION 2009040501
29 #ifdef WIN32
30 #define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)
31 #elif defined( __GNUC__ )
32 #define MANGOS_DLL_EXPORT extern "C"
33 #else
34 #define MANGOS_DLL_EXPORT extern "C" export
35 #endif
37 #ifndef _VERSION
38 #define _VERSION "Revision [" REVISION_ID "] " REVISION_DATE " " REVISION_TIME
39 #endif
41 // The path to config files
42 #ifndef SYSCONFDIR
43 #define SYSCONFDIR ""
44 #endif
46 #if PLATFORM == PLATFORM_WINDOWS
47 #ifdef _WIN64
48 #define _FULLVERSION _VERSION " (Win64)"
49 #else
50 #define _FULLVERSION _VERSION " (Win32)"
51 #endif
52 #define _SCRIPTDEV2_CONFIG "scriptdev2.conf"
53 #else
54 #define _FULLVERSION _VERSION " (Unix)"
55 #define _SCRIPTDEV2_CONFIG SYSCONFDIR"scriptdev2.conf"
56 #endif
58 #endif