os_types.h.in 1.66 KB
Newer Older
jon's avatar
jon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef _OS_TYPES_H
#define _OS_TYPES_H
/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
 * PLEASE READ THESE TERMS DISTRIBUTING.                            *
 *                                                                  *
 * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
 * by Monty <monty@xiph.org> and The XIPHOPHORUS Company            *
 * http://www.xiph.org/                                             *
 *                                                                  *
 ********************************************************************

 function: #ifdef jail to whip a few platforms into the UNIX ideal.
Monty's avatar
 
Monty committed
17
 last mod: $Id: os_types.h.in,v 1.1 2000/08/30 06:09:21 xiphmont Exp $
jon's avatar
jon committed
18 19 20

 ********************************************************************/

Monty's avatar
 
Monty committed
21 22 23
#if defined (_WIN32) 
#if !defined(__GNUC__)

Monty's avatar
 
Monty committed
24 25 26 27 28 29
/* MSVC/Borland */
typedef __int64 ogg_int64_t;
typedef __int32 ogg_int32_t;
typedef unsigned __int32 ogg_int32_t;
typedef __int16 ogg_int16_t;

Monty's avatar
 
Monty committed
30
#else
Monty's avatar
 
Monty committed
31 32

/* Cygwin */
Monty's avatar
 
Monty committed
33
#include <_G_config.h>
Monty's avatar
 
Monty committed
34 35 36 37
typedef _G_int64_t ogg_int64_t;
typedef _G_int32_t ogg_int32_t;
typedef unsigned _G_int32_t ogg_int32_t;
typedef _G_int16_t ogg_int16_t;
jon's avatar
jon committed
38
#endif
Monty's avatar
 
Monty committed
39
#else
jon's avatar
jon committed
40

Monty's avatar
 
Monty committed
41
#ifdef __BEOS__
Monty's avatar
 
Monty committed
42
/* Be */
Monty's avatar
 
Monty committed
43 44 45
#include <inttypes.h>
#endif

Monty's avatar
 
Monty committed
46 47 48 49 50 51 52 53
/* filled in by configure */
typedef @SIZE16@ ogg_int16_t;
typedef @SIZE32@ ogg_int32_t;
typedef @USIZE32@ ogg_uint32_t;
typedef @SIZE64@ ogg_int64_t;

#endif

Monty's avatar
 
Monty committed
54
#endif 
jon's avatar
jon committed
55