From: andyp AT parallax DOT co DOT uk (Andy Piper) Subject: Re: gettimeofday function, and crypt 24 Sep 1998 01:43:43 -0700 Message-ID: <3.0.3.32.19980924093136.00d2a440.cygnus.cygwin32.developers@exchange.parallax.co.uk> References: <19980922010715 DOT 20673 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Geoffrey Noer Cc: David Skidmore , cygwin32-developers AT cygnus DOT com At 01:07 22/09/98 -0700, Geoffrey Noer wrote: >> extern int srandom( unsigned seed); >> extern long random(); > >These aren't in there yet. I can't find them in SunOS or Linux header >files either. Where should they go??? Maybe stdlib.h? Looking at the sunos man pages it looks like they might be BSD functions. The other stuff I have had to add is: Tthese two are because of bugs in the cygwin header files, in particular if you can find the font structure with ntmTm in it you should change it to ntmentm. #define FONTENUMPROC FONTENUMEXPROC #define ntmTm ntmentm extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD); This one you may disagree with #define stricmp strcasecmp This is all standard stuff for maniuplating image lists #define TB_SETIMAGELIST (WM_USER + 48) #define TB_GETIMAGELIST (WM_USER + 49) #define TB_SETDISABLEDIMAGELIST (WM_USER + 54) #define TB_GETDISABLEDIMAGELIST (WM_USER + 55) #define TB_SETPADDING (WM_USER + 87) The other really important one is - could you wrap the definition of CONST with #ifndef CONST. This is what the windows headers do and allow one to change the definitiion if so required. andy --------------------------------------------------------------------------- " .sigs are like your face - rarely seen by you and uglier than you think" Dr Andy Piper, Technical Architect, Parallax Solutions Ltd mail: andyp AT parallax DOT co DOT uk web: www.parallax.co.uk/~andyp