[Pcre-svn] [521] code/trunk: Remove explicit include of pcre…

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [521] code/trunk: Remove explicit include of pcre.h from pcreposix. c because pcre_internal.h
Revision: 521
          http://vcs.pcre.org/viewvc?view=rev&revision=521
Author:   ph10
Date:     2010-05-22 20:03:35 +0100 (Sat, 22 May 2010)


Log Message:
-----------
Remove explicit include of pcre.h from pcreposix.c because pcre_internal.h
already includes it. This avoids a PCRE_EXP_DECL problem.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcreposix.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2010-05-22 18:54:05 UTC (rev 520)
+++ code/trunk/ChangeLog    2010-05-22 19:03:35 UTC (rev 521)
@@ -43,6 +43,12 @@
     studied, and the match started with a letter with a code point greater than 
     127 whose first byte was different to the first byte of the other case of
     the letter, the other case of this starting letter was not recognized.
+    
+12. pcreposix.c included pcre.h before including pcre_internal.h. This caused a
+    conflict in the definition of PCRE_EXP_DECL. I have removed the include of 
+    pcre.h as pcre_internal.h includes pcre.h itself. (This may be a bit of
+    historical tidying that never got done.)
+ 



Version 8.02 19-Mar-2010

Modified: code/trunk/pcreposix.c
===================================================================
--- code/trunk/pcreposix.c    2010-05-22 18:54:05 UTC (rev 520)
+++ code/trunk/pcreposix.c    2010-05-22 19:03:35 UTC (rev 521)
@@ -57,7 +57,6 @@
 #  define PCREPOSIX_EXP_DEFN __declspec(dllexport)
 #endif


-#include "pcre.h"
#include "pcre_internal.h"
#include "pcreposix.h"