⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.win32

📁 FreeAMP(MP3播放)程序源代码-用来研究MP3解码
💻 WIN32
字号:
/*____________________________________________________________________________
	
	FreeAmp - The Free MP3 Player

	Portions Copyright (C) 1998-2000 EMusic.com

	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., 675 Mass Ave, Cambridge, MA 02139, USA.
	
	$Id: config.win32,v 1.35 2000/10/12 23:05:49 robert Exp $
____________________________________________________________________________*/

#ifndef CONFIG_H
#define CONFIG_H

// name of company
#define BRANDING_COMPANY "FreeAmp"

// name of player
#define BRANDING "FreeAmp"

// name of player + "The" and "the" if it is needed for your player name. for 
// example, Welcome to FreeAmp does not need the "the" but Welcome to the 
// EMusic Player does in order to read well.
#define The_BRANDING "FreeAmp"
#define the_BRANDING "FreeAmp"

#define BRANDING_URL "http://www.freeamp.org"
#define BRANDING_UPDATE_SERVER "update.freeamp.org"
#define BRANDING_UPDATE_PATH "/update/freeamp/"
#define BRANDING_DEFAULT_THEME "FreeAmp.fat"
#define BRANDING_HELP_FILE "freeamp.hlp"

// uncomment these lines if branding version != FreeAmp version
//#define BRANDING_MAJOR_VERSION "2"
//#define BRANDING_MINOR_VERSION "1"
//#define BRANDING_REVISION_VERSION "0"
//#define BRANDING_VERSION BRANDING_MAJOR_VERSION"."BRANDING_MINOR_VERSION"."BRANDING_REVISION_VERSION

#if !defined(RC_INVOKED)

#include <limits.h>

#define FREEAMP_PATH_ENV "FREEAMP_PATH"
#define FREEAMP_MAJOR_VERSION "2"
#define FREEAMP_MINOR_VERSION "1"
#define FREEAMP_REVISION_VERSION "0"
#define FREEAMP_VERSION FREEAMP_MAJOR_VERSION"."FREEAMP_MINOR_VERSION"."FREEAMP_REVISION_VERSION

#ifndef BRANDING_VERSION
#define BRANDING_VERSION FREEAMP_VERSION
#endif

/* musicbrainz stuff */
#define MUSICBRAINZ_SERVER "www.musicbrainz.org"
#define MUSICBRAINZ_PORT   80 

#define HAVE_IO_H 1
#define HAVE_ERRNO_H 1
#define HAVE_ID3V2 1

#if HAVE_UNISTD_H
#define RD_BNRY_FLAGS O_RDONLY
#elif HAVE_IO_H
#define RD_BNRY_FLAGS O_RDONLY | O_BINARY
#endif

/* Endian Issues */
#ifdef LINUX
#include <endian.h>
#endif

#ifdef WIN32

#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN    4321
#define __PDP_ENDIAN    3412
#define __BYTE_ORDER    __LITTLE_ENDIAN
#define usleep(x) ::Sleep(x/1000)
#define strcasecmp(a,b) stricmp(a,b)
#define strncasecmp(a,b,c) strnicmp(a,b,c)
typedef int socklen_t;
typedef int fa_socklen_t;
#endif

#ifndef _MAX_PATH
#define _MAX_PATH 260
#endif

/* define our datatypes */
// real number
typedef double real;

#if UCHAR_MAX == 0xff

typedef unsigned char	uint8;
typedef signed char		int8;

#else
#error This machine has no 8-bit type
#endif

#if UINT_MAX == 0xffff

typedef unsigned int	uint16;
typedef int				int16;

#elif USHRT_MAX == 0xffff

typedef unsigned short	uint16;
typedef short			int16;

#else
#error This machine has no 16-bit type
#endif


#if UINT_MAX == 0xfffffffful

typedef unsigned int	uint32;
typedef int				int32;

#elif ULONG_MAX == 0xfffffffful

typedef unsigned long	uint32;
typedef long			int32;

#elif USHRT_MAX == 0xfffffffful

typedef unsigned short	uint32;
typedef short			int32;

#else
#error This machine has no 32-bit type
#endif


// What character marks the end of a directory entry? For DOS and
// Windows, it is "\"; in UNIX it is "/".
#if defined(WIN32) || defined(OS2) || defined(__DOS__)
#define DIR_MARKER '\\'
#define DIR_MARKER_STR "\\"
#else
#define DIR_MARKER '/'
#define DIR_MARKER_STR "/"
#endif /* WIN32 */

// What character(s) marks the end of a line in a text file? 
// For DOS and Windows, it is "\r\n"; in UNIX it is "\r".
#if defined(WIN32) || defined(OS2) || defined(__DOS__)
#define LINE_END_MARKER_STR "\r\n"
#else
#define LINE_END_MARKER_STR "\n"
#endif /* WIN32 */

#ifndef NULL
#ifdef  __cplusplus
#define NULL    0
#else
#define NULL    ((void *)0)
#endif
#endif /* NULL */

#endif /* RC_INVOKED */

#endif /* CONFIG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -