Mercurial > audlegacy-plugins
view src/tta/aud-support.h @ 551:c0f69d57483b trunk
[svn] - change some references for long to int, reported by and patch by
Kazuki Oikawa, closes #769.
author | nenolod |
---|---|
date | Thu, 25 Jan 2007 22:52:52 -0800 |
parents | fbd06b4aa776 |
children |
line wrap: on
line source
#include <audacious/vfs.h> #define FILE VFSFile #define fopen vfs_fopen #define fclose vfs_fclose #define fwrite vfs_fwrite #define fread vfs_fread #define frewind vfs_frewind #define ftell vfs_ftell #define fseek vfs_fseek size_t file_size (char *filename) { VFSFile *f; size_t size = -1; if ((f = vfs_fopen (filename, "r"))) { vfs_fseek (f, 0, SEEK_END); size = vfs_ftell (f); vfs_fclose (f); } return size; }