Skip to content

Commit

Permalink
kernel: define SYS_IS_CYGWIN32 in header, not via autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Oct 17, 2021
1 parent 34d7bb1 commit 9e88023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ esac

case "$host_os" in
*cygwin*)
AC_DEFINE([SYS_IS_CYGWIN32], [1], [define if this is the Cygwin32 port])
CYGWIN=yes

AS_IF([test "x$enable_compat_mode" = xyes],[
Expand Down
7 changes: 7 additions & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
GAP_STATIC_ASSERT(sizeof(void *) == SIZEOF_VOID_P, "sizeof(void *) is wrong");


// check for cygwin
#if defined(__CYGWIN__) || defined(__CYGWIN32__)
// for historical reasons, the macro we define is called SYS_IS_CYGWIN32
#define SYS_IS_CYGWIN32 1
#endif


#ifdef USE_GASMAN
#define GAP_ENABLE_SAVELOAD
#endif
Expand Down

0 comments on commit 9e88023

Please sign in to comment.