istereo2

annotate src/glut/assman.c @ 10:2a0ef5efb8e2

fixed macosx build
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Sep 2015 04:55:30 +0300
parents
children
rev   line source
nuclear@9 1 #include <stdio.h>
nuclear@9 2 #include "assman.h"
nuclear@9 3
nuclear@9 4 ass_file *ass_fopen(const char *fname, const char *mode)
nuclear@9 5 {
nuclear@9 6 return (ass_file*)fopen(fname, mode);
nuclear@9 7 }
nuclear@9 8
nuclear@9 9 void ass_fclose(ass_file *fp)
nuclear@9 10 {
nuclear@9 11 fclose((FILE*)fp);
nuclear@9 12 }
nuclear@9 13
nuclear@9 14 long ass_fseek(ass_file *fp, long offs, int whence)
nuclear@9 15 {
nuclear@9 16 fseek((FILE*)fp, offs, whence);
nuclear@9 17 return ftell((FILE*)fp);
nuclear@9 18 }
nuclear@9 19
nuclear@9 20 long ass_ftell(ass_file *fp)
nuclear@9 21 {
nuclear@9 22 return ftell((FILE*)fp);
nuclear@9 23 }
nuclear@9 24
nuclear@9 25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
nuclear@9 26 {
nuclear@9 27 return fread(buf, size, count, (FILE*)fp);
nuclear@9 28 }