ftp.delorie.com/archives/browse.cgi | search |
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 <wkersber AT caiw DOT nl> 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. <a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w"> Click here for more info.</a>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |