[Pcre-svn] [939] code/trunk: Undefine WIN32 for pcre2grep un…

Página superior
Eliminar este mensaje
Autor: Subversion repository
Fecha:  
A: pcre-svn
Asunto: [Pcre-svn] [939] code/trunk: Undefine WIN32 for pcre2grep under Cygwin.
Revision: 939
          http://www.exim.org/viewvc/pcre2?view=rev&revision=939
Author:   ph10
Date:     2018-06-19 17:27:42 +0100 (Tue, 19 Jun 2018)
Log Message:
-----------
Undefine WIN32 for pcre2grep under Cygwin.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2grep.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2018-06-18 16:49:12 UTC (rev 938)
+++ code/trunk/ChangeLog    2018-06-19 16:27:42 UTC (rev 939)
@@ -67,7 +67,10 @@
 default default of 10 000 000, some JIT tests of the match limit no longer
 failed. All such tests now set 10 000 000 as the upper limit.


+16. Another Windows related patch for pcregrep to ensure that WIN32 is
+undefiined under Cygwin.

+
Version 10.31 12-February-2018
------------------------------


Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c    2018-06-18 16:49:12 UTC (rev 938)
+++ code/trunk/src/pcre2grep.c    2018-06-19 16:27:42 UTC (rev 939)
@@ -64,8 +64,8 @@
 #endif


/* Some cmake's define it still */
-#if defined(__CYGWIN__) && !defined(WIN32)
-#define WIN32
+#if defined(__CYGWIN__) && defined(WIN32)
+#undef WIN32
#endif

#ifdef WIN32