From c851f9703651506b8baf82ff5d63b5cd3632081d Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Wed, 21 Oct 2020 21:19:31 -0400 Subject: [PATCH] redex: patch for boost 1.74 --- Formula/redex.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Formula/redex.rb b/Formula/redex.rb index 804422dac8376..6b1d4bbba064b 100644 --- a/Formula/redex.rb +++ b/Formula/redex.rb @@ -10,6 +10,7 @@ class Redex < Formula sha256 "18a840e4db0fc51f79e17dfd749b2ffcce65a28e7ef9c2b3c255c5ad89f6fd6f" # Fix compilation on High Sierra + # Fix boost issue (https://github.com/facebook/redex/pull/564) # Remove for next release patch :DATA end @@ -64,3 +65,22 @@ def install #include #include #include +diff --git a/libredex/Show.cpp b/libredex/Show.cpp +index b042070f..5e492e3f 100644 +--- a/libredex/Show.cpp ++++ b/libredex/Show.cpp +@@ -9,7 +9,14 @@ + + #include "Show.h" + ++#include ++// Quoted was accepted into public components as of 1.73. The `detail` ++// header was removed in 1.74. ++#if BOOST_VERSION < 107400 + #include ++#else ++#include ++#endif + #include + + #include "ControlFlow.h"