build: Use __CYGWIN__ to detect Cygwin

The old __CYGWIN32__ does not work with the 64-bit version
of Cygiwn. Using __CYGWIN__ instead allows us to build
gen_idt.c under 64-bit Cygwin.

Change-Id: I6590767153e929764f0b448f74bb8e3f2e593a6a
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2016-09-07 09:37:38 +02:00 committed by Anas Nashif
commit 5a271f913c

View file

@ -51,7 +51,7 @@
/* This comes from the shared directory */
#include "idtEnt.h"
#if !defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__WIN32__)
#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WIN32__)
#define O_BINARY 0
#endif