2006-02-17 13:35:04 +00:00
|
|
|
/* <!-- copyright */
|
|
|
|
/*
|
|
|
|
* aria2 - a simple utility for downloading files faster
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Tatsuhiro Tsujikawa
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
/* copyright --> */
|
2006-03-05 06:32:01 +00:00
|
|
|
#ifndef _D_COMMON_H_
|
|
|
|
#define _D_COMMON_H_
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
2006-02-17 13:35:04 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <assert.h>
|
2006-02-28 02:25:45 +00:00
|
|
|
#include <limits.h>
|
2006-03-05 06:32:01 +00:00
|
|
|
#if ENABLE_NLS
|
|
|
|
# include <gettext.h>
|
|
|
|
# define _(String) gettext (String)
|
|
|
|
#else
|
|
|
|
# define _(String) (String)
|
2006-02-17 13:35:04 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-28 03:09:22 +00:00
|
|
|
#ifndef LONG_LONG_MAX
|
|
|
|
# define LONG_LONG_MAX 9223372036854775807LL
|
|
|
|
# define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
|
|
|
|
#endif // LONG_LONG_MAX
|
|
|
|
|
2006-03-01 15:28:03 +00:00
|
|
|
#define USER_AGENT "aria2"
|
|
|
|
|
2006-02-17 13:35:04 +00:00
|
|
|
using namespace std;
|
2006-03-05 06:32:01 +00:00
|
|
|
|
|
|
|
#endif // _D_COMMON_H_
|