flac/include/FLAC/ordinals.h.in

59 lines
1.6 KiB
C
Raw Normal View History

2001-02-08 00:38:41 +00:00
/* libFLAC - Free Lossless Audio Codec library
2003-01-02 07:03:16 +00:00
* Copyright (C) 2000,2001,2002,2003 Josh Coalson
2000-12-10 04:09:52 +00:00
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef FLAC__ORDINALS_H
#define FLAC__ORDINALS_H
#ifdef true
#undef true
#endif
#ifdef false
#undef false
#endif
2002-06-08 04:53:42 +00:00
#ifndef __cplusplus
2000-12-10 04:09:52 +00:00
#define true 1
#define false 0
2002-06-08 04:53:42 +00:00
#endif
2000-12-10 04:09:52 +00:00
2001-06-23 03:03:24 +00:00
typedef int FLAC__bool;
2001-06-29 02:54:04 +00:00
2001-06-23 03:03:24 +00:00
typedef signed char FLAC__int8;
typedef unsigned char FLAC__uint8;
2001-06-29 02:54:04 +00:00
2002-11-28 22:53:10 +00:00
#if defined _MSC_VER
2001-06-29 02:54:04 +00:00
typedef __int16 FLAC__int16;
typedef __int32 FLAC__int32;
2001-06-23 03:03:24 +00:00
typedef __int64 FLAC__int64;
2001-06-29 02:54:04 +00:00
typedef unsigned __int16 FLAC__uint16;
typedef unsigned __int32 FLAC__uint32;
2001-06-23 03:03:24 +00:00
typedef unsigned __int64 FLAC__uint64;
2000-12-10 04:09:52 +00:00
#else
2001-06-29 02:54:04 +00:00
typedef @FLaC__SIZE16@ FLAC__int16;
typedef @FLaC__SIZE32@ FLAC__int32;
typedef @FLaC__SIZE64@ FLAC__int64;
typedef @FLaC__USIZE16@ FLAC__uint16;
typedef @FLaC__USIZE32@ FLAC__uint32;
typedef @FLaC__USIZE64@ FLAC__uint64;
2000-12-10 04:09:52 +00:00
#endif
2001-06-29 02:54:04 +00:00
2001-06-23 03:03:24 +00:00
typedef FLAC__uint8 FLAC__byte;
typedef float FLAC__real;
2000-12-10 04:09:52 +00:00
#endif