view tremor/os_types.h @ 25308:7fdb9b2b6770

Fix printf format string length modifiers, removes the warnings: asfinfo.c: In function 'print_wave_header': asfinfo.c:114: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c:115: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c: In function 'print_video_header': asfinfo.c:140: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c:141: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c:142: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c:145: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c:146: warning: format '%d' expects type 'int', but argument 2 has type 'long int' asfinfo.c: In function 'main': asfinfo.c:174: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'long int' asfinfo.c:220: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
author diego
date Mon, 10 Dec 2007 13:11:26 +0000
parents adaba898053d
children 691c8dd10460
line wrap: on
line source

/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE.   *
 *                                                                  *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
 *                                                                  *
 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002    *
 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/                  *
 *                                                                  *
 ********************************************************************

 function: #ifdef jail to whip a few platforms into the UNIX ideal.

 ********************************************************************/
#ifndef _OS_TYPES_H
#define _OS_TYPES_H

#ifdef _LOW_ACCURACY_
#  define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
#  define LOOKUP_T const unsigned char
#else
#  define X(n) (n)
#  define LOOKUP_T const ogg_int32_t
#endif

/* make it easy on the folks that want to compile the libs with a
   different malloc than stdlib */
#define _ogg_malloc  malloc
#define _ogg_calloc  calloc
#define _ogg_realloc realloc
#define _ogg_free    free

   #include <inttypes.h>
   typedef int64_t ogg_int64_t;
   typedef int32_t ogg_int32_t;
   typedef uint32_t ogg_uint32_t;
   typedef uint16_t ogg_uint16_t;
   typedef int16_t ogg_int16_t;

#endif  /* _OS_TYPES_H */