mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-15 14:40:53 +00:00
0704abe5ec
Modified to fit into Quake 3 build system and use q_platform.h instead of configure.
238 lines
7.1 KiB
C
238 lines
7.1 KiB
C
/*
|
|
===========================================================================
|
|
Copyright (C) 2018 Zack Middleton
|
|
|
|
This file is part of Quake III Arena source code.
|
|
|
|
Quake III Arena source code 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.
|
|
|
|
Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
===========================================================================
|
|
*/
|
|
|
|
/* ZTM: libmad config.h for use with Quake 3 engine, based on config.h generated by configure. */
|
|
/* NOTE: mad.h was modified to use config.h instead of generating mad.h for each platform. */
|
|
/* NOTE: "ifdef HAVE_CONFIG_H" was replaced with "if 1 // ifdef HAVE_CONFIG_H" */
|
|
/* NOTE: One of FPM_DEFAULT, FPM_INTEL, etc must be defined by the build system for files including mad.h in engine and the libmad source. */
|
|
#include "../qcommon/q_platform.h"
|
|
|
|
/* Define to enable diagnostic debugging support. */
|
|
/* #undef DEBUG */
|
|
|
|
/* Define to enable experimental code. */
|
|
/* #undef EXPERIMENTAL */
|
|
|
|
#ifdef _WIN32
|
|
|
|
/* Define to 1 if you have the <assert.h> header file. */
|
|
#define HAVE_ASSERT_H 1
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
/* #undef HAVE_DLFCN_H */
|
|
|
|
/* Define to 1 if you have the <errno.h> header file. */
|
|
#define HAVE_ERRNO_H 1
|
|
|
|
/* Define to 1 if you have the `fcntl' function. */
|
|
/* #undef HAVE_FCNTL */
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
/* Define to 1 if you have the `fork' function. */
|
|
/* #undef HAVE_FORK */
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the <limits.h> header file. */
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
/* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */
|
|
/* #undef HAVE_MADD16_ASM */
|
|
|
|
/* Define if your MIPS CPU supports a 2-operand MADD instruction. */
|
|
/* #undef HAVE_MADD_ASM */
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#define HAVE_MEMORY_H 1
|
|
|
|
/* Define to 1 if you have the `pipe' function. */
|
|
/* #undef HAVE_PIPE */
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#define HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#define HAVE_STRINGS_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#define HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
|
|
/* #undef HAVE_SYS_WAIT_H */
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
/* #undef HAVE_UNISTD_H */
|
|
|
|
/* Define to 1 if you have the `waitpid' function. */
|
|
/* #undef HAVE_WAITPID */
|
|
|
|
#else // __linux__
|
|
|
|
/* Define to 1 if you have the <assert.h> header file. */
|
|
#define HAVE_ASSERT_H 1
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#define HAVE_DLFCN_H 1
|
|
|
|
/* Define to 1 if you have the <errno.h> header file. */
|
|
#define HAVE_ERRNO_H 1
|
|
|
|
/* Define to 1 if you have the `fcntl' function. */
|
|
#define HAVE_FCNTL 1
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
/* Define to 1 if you have the `fork' function. */
|
|
#define HAVE_FORK 1
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the <limits.h> header file. */
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
/* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */
|
|
/* #undef HAVE_MADD16_ASM */
|
|
|
|
/* Define if your MIPS CPU supports a 2-operand MADD instruction. */
|
|
/* #undef HAVE_MADD_ASM */
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#define HAVE_MEMORY_H 1
|
|
|
|
/* Define to 1 if you have the `pipe' function. */
|
|
#define HAVE_PIPE 1
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#define HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#define HAVE_STRINGS_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#define HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
|
|
#define HAVE_SYS_WAIT_H 1
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#define HAVE_UNISTD_H 1
|
|
|
|
/* Define to 1 if you have the `waitpid' function. */
|
|
#define HAVE_WAITPID 1
|
|
|
|
#endif // _WIN32
|
|
|
|
/* Define to disable debugging assertions. */
|
|
/* #undef NDEBUG */
|
|
|
|
/* Define to optimize for accuracy over speed. */
|
|
/* #undef OPT_ACCURACY */
|
|
|
|
/* Define to optimize for speed over accuracy. */
|
|
/* #undef OPT_SPEED */
|
|
|
|
/* Define to enable a fast subband synthesis approximation optimization. */
|
|
/* #undef OPT_SSO */
|
|
|
|
/* Define to influence a strict interpretation of the ISO/IEC standards, even
|
|
if this is in opposition with best accepted practices. */
|
|
/* #undef OPT_STRICT */
|
|
|
|
/* Name of package */
|
|
#define PACKAGE "libmad"
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#define PACKAGE_BUGREPORT "support@underbit.com"
|
|
|
|
/* Define to the full name of this package. */
|
|
#define PACKAGE_NAME "MPEG Audio Decoder"
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#define PACKAGE_STRING "MPEG Audio Decoder 0.15.1b"
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#define PACKAGE_TARNAME "libmad"
|
|
|
|
/* Define to the version of this package. */
|
|
#define PACKAGE_VERSION "0.15.1b"
|
|
|
|
/* The size of a `int', as computed by sizeof. */
|
|
#define SIZEOF_INT 4
|
|
|
|
/* The size of a `long', as computed by sizeof. */
|
|
/* ZTM: Assume 8 bytes on 64-bit Unix */
|
|
#if defined idx64 && !defined _WIN32
|
|
#define SIZEOF_LONG 8
|
|
#else
|
|
#define SIZEOF_LONG 4
|
|
#endif
|
|
|
|
/* The size of a `long long', as computed by sizeof. */
|
|
#define SIZEOF_LONG_LONG 8
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#define STDC_HEADERS 1
|
|
|
|
/* Version number of package */
|
|
#define VERSION "0.15.1b"
|
|
|
|
/* Define to 1 if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#ifdef Q3_BIG_ENDIAN
|
|
#define WORDS_BIGENDIAN
|
|
#else
|
|
/* #undef WORDS_BIGENDIAN */
|
|
#endif
|
|
|
|
|
|
/* Define to empty if `const' does not conform to ANSI C. */
|
|
/* #undef const */
|
|
|
|
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
|
calls it, or to nothing if 'inline' is not supported under any name. */
|
|
#define inline ID_INLINE
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
/* #undef pid_t */
|