This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: [aenchevich@shaw.ca: compile error in types.h?]
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Sun, 30 Mar 2003 19:10:18 +0200
- Subject: Re: [aenchevich@shaw.ca: compile error in types.h?]
- References: <20030330163957.GA6703@redhat.com>
- Reply-to: cygwin-developers at cygwin dot com
On Sun, Mar 30, 2003 at 11:39:57AM -0500, Christopher Faylor wrote:
> Should the cygwin/types.h in cygwin/fs.h and cygwin/in.h actually be
> sys/types.h?
It's the simplest solution to include sys/types.h but in theory it
shouldn't be necessary. From where did you move the _t definitions to
cygwin/types.h on 2003-02-10? The problem is that they use the double
underscore definitions from sys/types.h. Actually they should go to
stdint.h, which can be included from cygwin/types.h and cygwin/in.h as
desired.
I don't see a need to include any types.h from cygwin/fs.h, though.
Corinna
> ----- Forwarded message from Alexander Enchevich <aenchevich at shaw dot ca> -----
>
> From: Alexander Enchevich <aenchevich at shaw dot ca>
> To: cygwin at cygwin dot com
> Subject: compile error in types.h?
> Date: Sat, 29 Mar 2003 23:04:08 -0800
> Mail-Followup-To: cygwin at cygwin dot com
>
> I am getting this compilation error in types.h:
> -----------------------------
> c++ -O2 -g -O0 -march=i586 -Wall -Wunused -c -o RevPlayer.o
> RevPlayer.cpp
> In file included from /usr/include/cygwin/in.h:21,
> from /usr/include/netinet/in.h:14,
> from aeTCPServer.h:4,
> from RevServer.h:4,
> from RevPlayer.h:4,
> from RevPlayer.cpp:1:
> /usr/include/cygwin/types.h:120: syntax error before `;' token
> -----------------------------
>
> On line 120 in types.h is this:
> #ifndef __int16_t_defined
> #define __int16_t_defined
> typedef __int16_t int16_t;
> #endif
>
> I can make it compile by including this at the top of types.h:
> #include <sys/types.h>
>
> , but I am not sure if this is the proper solution. If it is - whom to
> contact? If not - how to fix it?
>
> Thanks
>
> (Sources attached)
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
> ----- End forwarded message -----
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin at cygwin dot com
Red Hat, Inc.