/*
* global.h
*
* global variables and definitions
*
*/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _ED2K_GUI_GLOBAL_H_INCLUDED_
#define _ED2K_GUI_GLOBAL_H_INCLUDED_

#include <glib.h> /* for G_OS_* */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#define DUMMY_NICKNAME    "please wait"

#define G_FREE(somepointer)	if(somepointer){g_free(somepointer);somepointer=NULL;}

#if defined(ENABLE_NLS) && !defined(_)
# include <libintl.h>
# define _(x) gettext(x)
# ifdef gettext_noop
#   define N_(String) gettext_noop (String)
# else
#    define N_(String) (String)
# endif
#endif
#if !defined(ENABLE_NLS)
#  undef _
#  define N_(String) (String)
#  define _(x) (x)
#endif

#endif


