diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-28 14:05:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-28 14:05:46 +0000 |
commit | e54a3b66d3fe44634b3b336068b0de67d9259a3f (patch) | |
tree | 7b09e259051a92c4dae40ce4eda782d666628109 /nuttx/arch/sim | |
parent | efc2abcacd38e0a2a4ec330442b82343c40bac18 (diff) | |
download | px4-nuttx-e54a3b66d3fe44634b3b336068b0de67d9259a3f.tar.gz px4-nuttx-e54a3b66d3fe44634b3b336068b0de67d9259a3f.tar.bz2 px4-nuttx-e54a3b66d3fe44634b3b336068b0de67d9259a3f.zip |
Use only __CYGWIN__ to identify Cygwin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3987 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim')
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 2 | ||||
-rw-r--r-- | nuttx/arch/sim/src/up_internal.h | 4 | ||||
-rw-r--r-- | nuttx/arch/sim/src/up_tapdev.c | 4 | ||||
-rw-r--r-- | nuttx/arch/sim/src/up_wpcap.c | 4 |
4 files changed, 6 insertions, 8 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index 5e49b0ff0..808388410 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -46,8 +46,6 @@ else endif else USEX = n - CFLAGS += -DCYGWIN - HOSTCFLAGS += -DCYGWIN endif CFLAGS += -I$(TOPDIR)/sched diff --git a/nuttx/arch/sim/src/up_internal.h b/nuttx/arch/sim/src/up_internal.h index 094776390..82df76e1f 100644 --- a/nuttx/arch/sim/src/up_internal.h +++ b/nuttx/arch/sim/src/up_internal.h @@ -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); diff --git a/nuttx/arch/sim/src/up_tapdev.c b/nuttx/arch/sim/src/up_tapdev.c index 9c88245b1..4176258e2 100644 --- a/nuttx/arch/sim/src/up_tapdev.c +++ b/nuttx/arch/sim/src/up_tapdev.c @@ -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__ */ diff --git a/nuttx/arch/sim/src/up_wpcap.c b/nuttx/arch/sim/src/up_wpcap.c index 9fd9e5064..18a6ad4ae 100644 --- a/nuttx/arch/sim/src/up_wpcap.c +++ b/nuttx/arch/sim/src/up_wpcap.c @@ -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__ */ |