[pcre-dev] [Bug 1344] Received compile error on Tru64

Góra strony
Delete this message
Autor: Philip Hazel
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1344] Received compile error on Tru64
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1344




--- Comment #4 from Philip Hazel <ph10@???> 2013-04-04 17:05:37 ---
This short patch for pcrecpp_internal.h might be the long-term answer to this
issue. If somebody who is running Tru64 can confirm that it works, it can be
put into the main code. My only worry is that this header is only included in
the main .cc files, not the unit tests. If they also need this, the patch will
have to included in each of them as well (there are only 3, so it is not a big
problem).

--- pcre-8.32/pcrecpp_internal.h     2008-08-24 12:24:28.000000000 +0100
+++ pcrecpp_internal.h  2013-03-22 17:41:31.486487400 +0000
@@ -66,6 +66,12 @@
 #  endif
 #endif


+/* This is needed for OSF1 (=Tru64) when not using GCC. */
+
+#if defined(OSF1) && !defined(__GNUC__)
+#define __USE_STD_IOSTREAM 1
+#endif
+
#endif /* PCRECPP_INTERNAL_H */

/* End of pcrecpp_internal.h */


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email