# New Ticket Created by  "Senaka Fernando" 
# Please include the string:  [perl #53112]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53112 >


The provided patch resolves the C++ build break caused by gmp.h.

Regards,
Senaka
Index: src/pmc/bigint.pmc
===================================================================
--- src/pmc/bigint.pmc	(revision 27059)
+++ src/pmc/bigint.pmc	(working copy)
@@ -26,9 +26,13 @@
 
 /* TODO split that out into a separate file */
 
-#ifdef S_SPLINT_S
-#  undef PARROT_HAS_GMP /* splint barfs on the gmp.h header */
-#endif /* S_SPLINT_S */
+#ifdef PARROT_HAS_GMP
+#  ifdef S_SPLINT_S
+#    undef PARROT_HAS_GMP /* splint barfs on the gmp.h header */
+#  elif __cplusplus
+#    undef PARROT_HAS_GMP /* gmp.h header is C++ incompatible */
+#  endif
+#endif
 
 #ifdef PARROT_HAS_GMP
 #  include <gmp.h>

Reply via email to