From: korpela AT albert DOT ssl DOT berkeley DOT edu (Eric J. Korpela) Newsgroups: comp.os.msdos.djgpp Subject: Re: help me with struct! Date: 21 Jan 1997 01:01:09 GMT Organization: Cal Berkeley-- Space Sciences Lab Lines: 20 Message-ID: <5c14gl$72d@agate.berkeley.edu> References: <01bc06d2$4790c4e0$190bb2c2 AT pb> NNTP-Posting-Host: albert.ssl.berkeley.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <01bc06d2$4790c4e0$190bb2c2 AT pb>, Martijn wrote: >I have the following in a winsock.h file and get syntax error before ";" >and a lot of other errors: > > WORD wlow; <-- syntax error before ; > WORD whigh; <-- syntax error before ; > char FAR *lpVendorInfo; <--parse error before * >typedef WSADATA FAR *LPWSADATA <-- parse error before * And Somewhere in your code before this declaration add the following lines typedef unsigned short WORD __attribute__((packed)); #define FAR Eric -- Eric Korpela | An object at rest can never be korpela AT ssl DOT berkeley DOT edu | stopped. Click here for more info.