Skip to content
Snippets Groups Projects
Commit 7aef42a8 authored by patacongo's avatar patacongo
Browse files

Use only __CYGWIN__ to identify Cygwin

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3987 42af7a65-404d-4744-a932-0658087f49c3
parent f47d7adc
No related branches found
No related tags found
No related merge requests found
......@@ -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__ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment