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

📄 patch_tremor_snapshot_2004_02_03.diff

📁 The Tremor Vorbis I stream and file decoder provides an embeddable, integer-only library [libvorbisi
💻 DIFF
字号:
Index: misc.h===================================================================RCS file: /cvs/ports/Tremor/misc.h,vretrieving revision 1.1retrieving revision 1.2diff -c -r1.1 -r1.2*** misc.h	3 Feb 2004 23:15:46 -0000	1.1--- misc.h	3 Feb 2004 23:23:52 -0000	1.2****************** 19,24 ****--- 19,27 ----  #define _V_RANDOM_H_  #include "ivorbiscodec.h"  #include "os_types.h"+ #ifdef _WIN32_WCE+ #include "os.h"+ #endif    #include "asm_arm.h"    Index: os.h===================================================================RCS file: /cvs/ports/Tremor/os.h,vretrieving revision 1.1retrieving revision 1.2diff -c -r1.1 -r1.2*** os.h	3 Feb 2004 23:15:46 -0000	1.1--- os.h	3 Feb 2004 23:23:52 -0000	1.2****************** 26,31 ****--- 26,34 ----  #  ifdef __GNUC__  #    define STIN static __inline__  #  elif _WIN32+ #ifdef _WIN32_WCE+ #define inline __inline+ #endif  #    define STIN static __inline  #  endif  #elseIndex: vorbisfile.c===================================================================RCS file: /cvs/ports/Tremor/vorbisfile.c,vretrieving revision 1.1retrieving revision 1.2diff -c -r1.1 -r1.2*** vorbisfile.c	3 Feb 2004 23:15:46 -0000	1.1--- vorbisfile.c	3 Feb 2004 23:23:52 -0000	1.2****************** 12,24 ****   ********************************************************************     function: stdio-based convenience library for opening/seeking/decoding!  last mod: $Id: vorbisfile.c,v 1.1 2004/02/03 23:15:46 lemure Exp $     ********************************************************************/    #include <stdlib.h>  #include <stdio.h>  #include <errno.h>  #include <string.h>  #include <math.h>  --- 12,26 ----   ********************************************************************     function: stdio-based convenience library for opening/seeking/decoding!  last mod: $Id: vorbisfile.c,v 1.2 2004/02/03 23:23:52 lemure Exp $     ********************************************************************/    #include <stdlib.h>  #include <stdio.h>+ #ifndef _WIN32_WCE  #include <errno.h>+ #endif  #include <string.h>  #include <math.h>  ****************** 60,71 ****--- 62,77 ----    /* read a little more data from the file/pipe into the ogg_sync framer */  static long _get_data(OggVorbis_File *vf){+ #ifndef _WIN32_WCE    errno=0;+ #endif    if(vf->datasource){      char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);      long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);      if(bytes>0)ogg_sync_wrote(vf->oy,bytes);+ #ifndef _WIN32_WCE      if(bytes==0 && errno)return(-1);+ #endif      return(bytes);    }else      return(0);

⌨️ 快捷键说明

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