[AD] al_find file size

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In allegro\include\allegro there is a file called file.h. It contains a structure mostly used by the al_find* functions.

struct al_ffblk        /* file info block for the al_find*() routines */
{
   int attrib;         /* actual attributes of the file found */
   time_t time;        /* modification time of file */
   long size;          /* size of file */
   char name[512];     /* name of file */
   void *ff_data;      /* private hook */
};

The type for size is too small to hold files larger than 4 Gb because on many compilers, a long is only 32 bits. Media files can be longer than 4 Gb. In addition many games are coming out on DVD so the files can be larger than 4 Gb. The long long data type is now supported by the C standard. Can someone change long size; to long long size; to accommodate large files?





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/