看看http://www.csdn.net/expert/topic/206/206353.shtm
因为太长,说明部分我先贴了:/* bmp2gif.c -- See end-of-file for (C) */
/* This was written for Microsoft 32-bit-integer compilers--it
* should compile with
*    cl gif2bmp.c
* to produce the executable gif2bmp.exe
*
* The Microsoft oddities are:
*  The funny include files -- they may be omitted on compilers
*  that can not find them (stdio.h better be there, however)
* #pragma pack(1) -- This forces the BITMAPFILEHEADER structure
*  to be the same length in memory as in files (otherwise, the structure
*  is padded out to be a multiple of 8? bytes long
* Note that Microsoft uses all-caps for typedefs.  Ugh.
*/