Main Page   Modules   Compound List   File List   Compound Members   File Members  

config.h

00001 /*
00002  * config.h
00003  *
00004  * Copyright (C) 2001 Guilhem Lavaux
00005  *
00006  * This file is part of XLV, a free middleware audio-video stream coder/decoder.
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * XLV 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 #ifdef HAVE_CONFIG_H
00023 #include "auto_config.h"
00024 #endif
00025 
00026 #undef gettext
00027 #undef _
00028 #undef dgettext
00029 #undef dcgettext
00030 #undef textdomain
00031 #undef bindtextdomain
00032 
00033 #ifdef ENABLE_INTL
00034 #include <locale.h>
00035 #include <libintl.h>
00036 #define _(s) dgettext(PACKAGE, s)
00037 #else
00038 #define _(s) s
00039 #endif
00040 
00041 #define XLV_BUILD_VERSION(a,b) ((a << 8) | b) 
00042 #define XLV_INTERFACE_VERSION XLV_BUILD_VERSION(2,0)
00043 
00044 #ifdef DEBUG_XLV_ON
00045 #include <stdio.h>
00046 #define XLV_DEBUG(format...) fprintf(stderr, "%s:%4d:", __FUNCTION__, __LINE__), fprintf(stderr, format);
00047 #define XLV_DEBUG_PRINT_GUID(guid) fprintf(stderr, "%08lx-%04lx-%04lx-%02lx-%02lx-%02lx-%02lx-%02lx-%02lx-%02lx-%02lx\n", (guid).m_v1, (guid).m_v2, (guid).m_v3, (guid).m_v4[0],(guid).m_v4[1], (guid).m_v4[2], (guid).m_v4[3], (guid).m_v4[4], (guid).m_v4[5], (guid).m_v4[6], (guid).m_v4[7]);
00048 #else
00049 #define XLV_DEBUG(format...)
00050 #define XLV_DEBUG_PRINT_GUID(guid)
00051 #endif

Generated on Mon Jul 1 19:39:05 2002 for XLV by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002