public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Winsock.h compilation error
@ 1997-08-26 11:26 Bardley09
  0 siblings, 0 replies; only message in thread
From: Bardley09 @ 1997-08-26 11:26 UTC (permalink / raw)
  To: gnu-win32

I can't figure this out.  I'm trying to compile a program which includes the
winsock.h header file.  Here are the errors I get, followed by the
corresponding areas in winsock.h.
At first I thought it was the IN thing, which I was able to locate (I think)
and the file it's in says it's a "pseudo keyword"  #defined to nothing.  

You may be thinking, "gee, this guy's helpless."  
You are wise.

C:\mingw32\win32\include/winsock.h:843: syntax error before `SOCKET'
C:\mingw32\win32\include/winsock.h:855: syntax error before `SOCKET'
C:\mingw32\win32\include/winsock.h:868: syntax error before `PVOID'

BOOL
PASCAL FAR
TransmitFile (
    IN SOCKET hSocket,
                                                               [843]
    IN HANDLE hFile,
    IN DWORD nNumberOfBytesToWrite,
    IN DWORD nNumberOfBytesPerSend,
    IN LPOVERLAPPED lpOverlapped,
    IN LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers,
    IN DWORD dwReserved
    );

BOOL
PASCAL FAR
AcceptEx (
   IN SOCKET sListenSocket,
                                                       [855]  
    IN SOCKET sAcceptSocket,
    IN PVOID lpOutputBuffer,
    IN DWORD dwReceiveDataLength,
    IN DWORD dwLocalAddressLength,
    IN DWORD dwRemoteAddressLength,
    OUT LPDWORD lpdwBytesReceived,
    IN LPOVERLAPPED lpOverlapped
    );

VOID
PASCAL FAR
GetAcceptExSockaddrs (
    IN PVOID lpOutputBuffer,
                                                      [868]    
    IN DWORD dwReceiveDataLength,
    IN DWORD dwLocalAddressLength,
    IN DWORD dwRemoteAddressLength,
    OUT struct sockaddr **LocalSockaddr,
    OUT LPINT LocalSockaddrLength,
    OUT struct sockaddr **RemoteSockaddr,
    OUT LPINT RemoteSockaddrLength
    );

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-26 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-26 11:26 Winsock.h compilation error Bardley09

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).