| From: Guy Harris
| 
| On Nov 13, 2003, at 12:30 PM, Biot Olivier wrote:
| 
| > Cygwin defines __CYGWIN__ :) I should have known...
| 
| And, if your gcc-dumpspecs.txt is to be believed, it also defines:
| 
|       _WIN32
| 
|       __WIN32
| 
|       __WIN32__
| 
|       __MINGW32__

Umm... this does not look like reality ):

#include <stdio.h>
int
main()
{
#ifdef __CYGWIN__
        puts("__CYGWIN__");
#endif
#ifdef __CYGWIN32__
        puts("__CYGWIN32__");
#endif
#ifdef WIN32
        puts("WIN32");
#endif
#ifdef _WIN32
        puts("_WIN32");
#endif
#ifdef __WIN32
        puts("__WIN32");
#endif
#ifdef __WIN32__
        puts("__WIN32__");
#endif
#ifdef __MINGW32__
        puts("__MINGW32__");
#endif
        return 0;
}

displays only __CYGWIN__ and __CYGWIN32__ ...

| so it shouldn't be necessary to remove the "#ifdef _WIN32"/"#endif" 
| around the include of "capture-wpcap.h".

Again, because of the test performed above, it isn't true :(

| It sounds from that, and from your other comments, as if 
| Loic's Cygwin 
| isn't working the same way that yours is.
| 
| What version of Cygwin do you have installed?  Loic, what version do 
| you have installed?

I have an almost up-to-date cygwin (last updated a couple of days ago).

Regards,

Olivier

Reply via email to