//
// This file is part of the aMule Project.
//
// Copyright (c) 2003-2009 aMule Team ( admin@amule.org / http://www.amule.org )
// Copyright (c) 2002 Merkur ( devs@emule-project.net / http://www.emule-project.net )
//
// Any parts of this program derived from the xMule, lMule or eMule project,
// or contributed by third-party developers are copyrighted by their
// respective authors.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA
//

#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H

#ifdef HAVE_CONFIG_H
	#include "config.h"	// Needed for VERSION
#endif


// eMule version used on old MuleInfo packet (unimportant).
#define	CURRENT_VERSION_SHORT			0x47

// This is only used to server login. It has no real "version" meaning anymore.
#define	EDONKEYVERSION				0x3c 

// aMule version 

// No more Mod Version unless we're cvs

// RELEASERS: REMOVE THE DEFINE ON THE RELEASES, PLEASE
// AND FIX THE MOD_VERSION_LONG

/* #undef __SVN__ */

#ifndef VERSION
	#define VERSION "2.2.6"
#endif

// ADUNANZA BEGIN
#if 0
#ifdef __SVN__
	#define	MOD_VERSION_LONG		wxT("aMule SVN")
#else
	#define	MOD_VERSION_LONG		(wxT("aMule ") wxT(VERSION))
#endif

#else // if 0

// IMPORTANTE:
// I client Windows pensano che la MOD_STRING INIZI con
//
//      "AdunanzA N.NbN"
//
// Dopo puo' anche esserci scritto qualcosa, l'importante e' l'inizio della stringa.
// Noi che siamo un po' piu' furbi invece CERCHIAMO nella mod string la scritta
// "AdunanzA N.NbN" e poi facciamo il parsing della sotto-stringa (v. BaseClient.cpp)
//
// Al fine del corretto riconoscimento da parte dei client Windows faccio quindi in modo 
// che la MOD_STRING inizi proprio con "AdunanzA N.NbN", sempre.
//
// Notare invece che in aMule ufficiale la MOD_VERSION_LONG viene comunque usata,
// ma popolata con "aMule N.N.N" in caso di versioni stabili e "aMule SVN" in caso di versioni
// SVN.

#ifdef __SVN__
	#define	MOD_VERSION_LONG		(ADU_MOD wxT(" - aMule SVN"))
#else
	// #define	MOD_VERSION_LONG		(wxT("aMule ") wxT(VERSION) wxT(" - ") ADU_MOD)
	#define	MOD_VERSION_LONG		ADU_MOD
#endif

#endif
// ADUNANZA END

#define	VERSION_MJR		2
#define	VERSION_MIN		2
#define	VERSION_UPDATE		6

#ifndef PACKAGE
#define PACKAGE "amule"
#endif

#endif // CLIENTVERSION_H
