From: colin@fu.is.saga-u.ac.jp (Colin Peters)
Subject: errno.h and Win32 API sockets.h
5 Nov 1996 00:34:19 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199611050604.PAA07151.cygnus.gnu-win32@bird.fu.is.saga-u.ac.jp>
Original-To: gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com


Another question to do with conflicts between windows32api-0.1.2 header
files and Cygnus (or other) headers. The constants ENOTEMPTY and ENAMETOOLONG
are defined in both errno.h and in the windows32api sockets.h header. Is there
a simple solution to this (aside from not using errno.h and windows.h in the
same file)?

Of course, since MSVC has the same problem maybe any fix would introduce
unneccessary incompatibilities. The only suggestion I can make is to take
the include of sockets.h out of windows.h and rename the file winsock.h
(for compatibility with MSVC). This would, at least, serve to isolate the
problem.

Colin.

------------------------------------------------------------------------------
Colin Peters ------------ Saga Univ. Dept. of Information Science, Saga, JAPAN
http://www.fu.is.saga-u.ac.jp/~colin/home.html - colin@bird.fu.is.saga-u.ac.jp
$@%3%j%s(J $@%T!<%?!<%:(J - $@:42lBg3XM}9)3XIt>pJs2J3X2J>pJs4pAC3X9V:B(J
                    - Current favorite kanji: $@@2$l(J $@<G@8(J -


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