This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B19 (egcs) bug report: missing c++ wrapper in byteorder.h
- To: <gnu-win32 at cygnus dot com>
- Subject: B19 (egcs) bug report: missing c++ wrapper in byteorder.h
- From: Orran Y Krieger <okrieg at us dot ibm dot com>
- Date: Sat, 4 Apr 1998 21:35:46 -0500
Bug report in the file:
/Cygnus/B19/H-i386-cygwin32/i386-cygwin32/include/asm/byteorder.h
It is missing the standard cplusplus stuff, i.e:
#ifdef __cplusplus
extern "C" {
#endif
,,,
#ifdef __cplusplus
}
#endif
If you include this file (e.g. indirectly by including <netinet/in.h>) when
compiling with g++ with no optimizations you get htons undefined. This was
probably missed because if you compile with optimizations the routines defined
in this file are turned into macroes.
I am using egcs-1.02, (from
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ ) and it is possible
that file came from the egcs distribution.
-- Orran Krieger
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".