Use only __CYGWIN__ to identify Cygwin

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3987 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-09-28 14:05:46 +00:00
parent 778fe8194e
commit 99f4ac37a0
4 changed files with 6 additions and 8 deletions

View File

@ -46,8 +46,6 @@ else
endif
else
USEX = n
CFLAGS += -DCYGWIN
HOSTCFLAGS += -DCYGWIN
endif
CFLAGS += -I$(TOPDIR)/sched

View File

@ -128,7 +128,7 @@ extern unsigned long up_getwalltime( void );
/* up_tapdev.c ************************************************************/
#if defined(CONFIG_NET) && !defined(CYGWIN)
#if defined(CONFIG_NET) && !defined(__CYGWIN__)
extern void tapdev_init(void);
extern unsigned int tapdev_read(unsigned char *buf, unsigned int buflen);
extern void tapdev_send(unsigned char *buf, unsigned int buflen);
@ -140,7 +140,7 @@ extern void tapdev_send(unsigned char *buf, unsigned int buflen);
/* up_wpcap.c *************************************************************/
#if defined(CONFIG_NET) && defined(CYGWIN)
#if defined(CONFIG_NET) && defined(__CYGWIN__)
extern void wpcap_init(void);
extern unsigned int wpcap_read(unsigned char *buf, unsigned int buflen);
extern void wpcap_send(unsigned char *buf, unsigned int buflen);

View File

@ -38,7 +38,7 @@
*
****************************************************************************/
#ifndef CYGWIN
#ifndef __CYGWIN__
/****************************************************************************
* Included Files
@ -266,6 +266,6 @@ void tapdev_send(unsigned char *buf, unsigned int buflen)
dump_ethhdr("write", buf, buflen);
}
#endif /* !CYGWIN */
#endif /* !__CYGWIN__ */

View File

@ -38,7 +38,7 @@
*
****************************************************************************/
#ifdef CYGWIN
#ifdef __CYGWIN__
/****************************************************************************
* Included Files
@ -309,4 +309,4 @@ void wpcap_send(unsigned char *buf, unsigned int buflen)
}
}
#endif /* CYGWIN */
#endif /* __CYGWIN__ */