*** A:\LTMFPROG\LTMF_LIB.C Tue Feb 4 20:13:32 1992 --- E:\DEV\LTMFPROG\LTMF_LIB.C Mon Mar 23 19:03:02 1992 *************** *** 81,87 **** int ltmf_check(unsigned int version) { if(!letemfly) ! letemfly = (LTMFLY *)get_cookie('LTMF'); if(letemfly && (letemfly->version >= version)) return(TRUE); else --- 81,87 ---- int ltmf_check(unsigned int version) { if(!letemfly) ! letemfly = (LTMFLY *)get_cookie(0x4C544D46L /*'LTMF'*/); /* !gcc! */ if(letemfly && (letemfly->version >= version)) return(TRUE); else *************** *** 132,138 **** --- 132,146 ---- int obj_clsize(OBJECT *tree, int obj, int *x, int *y, int *w, int *h) { if(ltmf_check(0x0110)) + #if defined(__GNUC__) && !defined(__MSHORT__) + { + short fx = *x, fy = *y, fw = *w, fh = *h; /* !gcc! */ + letemfly->obj_clsize(tree, obj, &fx, &fy, &fw, &fh); + *x = fx; *y = fy; *w = fw; *h = fh; + } + #else letemfly->obj_clsize(tree, obj, x, y, w, h); + #endif return(letemfly != 0l); } *** A:\LTMFPROG\LTMF_LIB.h Tue Feb 4 20:14:10 1992 --- E:\DEV\LTMFPROG\LTMF_LIB.h Mon Mar 23 17:24:24 1992 *************** *** 2,7 **** --- 2,16 ---- /* ----- Let 'em Fly! Library -------------- (c) 1991 by Oliver Scheel ----- */ /* ------------------------------------------------------------------------- */ + /* + gcc adaptions by Markus M. Nick (Markus_Nick@mz.maus.de), 23.03.92 + - all adaptions are marked with '!gcc!'. + - gcc users please use , and + distributed with Ruby. + - note that `do_key(short key, short kbshift)' requires shorts + (only important in 32 bit int mode when sizeof(short)!=sizeof(int)) + */ + #ifndef __LTMFLIB__ #define __LTMFLIB__ *************** *** 11,19 **** /* ----- Let 'em Fly! Structure -------------------------------------------- */ /* ------------------------------------------------------------------------- */ typedef struct { ! unsigned int version; /* BSD format */ struct { unsigned light : 1; /* light version (read) */ --- 20,33 ---- /* ----- Let 'em Fly! Structure -------------------------------------------- */ /* ------------------------------------------------------------------------- */ + #if defined(__GNUC__) && !defined(__MSHORT__) /* !gcc! */ + #define unsigned unsigned short + #define int short + #endif + typedef struct { ! unsigned /*int !gcc!*/ version; /* BSD format */ struct { unsigned light : 1; /* light version (read) */ *************** *** 49,54 **** --- 63,73 ---- int cdecl (*hist_insert)(char *string); char cdecl (*ins_spcchar)(void); } LTMFLY; + + #if defined(__GNUC__) && !defined(__MSHORT__) /* !gcc! */ + #undef unsigned + #undef int + #endif /* ------------------------------------------------------------------------- */