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:
parent
778fe8194e
commit
99f4ac37a0
@ -46,8 +46,6 @@ else
|
||||
endif
|
||||
else
|
||||
USEX = n
|
||||
CFLAGS += -DCYGWIN
|
||||
HOSTCFLAGS += -DCYGWIN
|
||||
endif
|
||||
|
||||
CFLAGS += -I$(TOPDIR)/sched
|
||||
|
@ -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);
|
||||
|
@ -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__ */
|
||||
|
||||
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user