summaryrefslogtreecommitdiff
path: root/media-gfx/asymptote/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-20 19:08:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-20 19:08:44 +0100
commit6b89cba67f554b60d139fd07623aef5cc724ec91 (patch)
tree876c06b4840a2ed6bff1771d124049d9bfff55b1 /media-gfx/asymptote/files
parent30114ae8ef07a32fea1e44a10b61f98c84142645 (diff)
gentoo auto-resync : 20:07:2023 - 19:08:44
Diffstat (limited to 'media-gfx/asymptote/files')
-rw-r--r--media-gfx/asymptote/files/asymptote-2.86-without-lsp.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-gfx/asymptote/files/asymptote-2.86-without-lsp.patch b/media-gfx/asymptote/files/asymptote-2.86-without-lsp.patch
new file mode 100644
index 000000000000..2f70cd0d9725
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.86-without-lsp.patch
@@ -0,0 +1,50 @@
+From 29caaed5ead5a62787475286afd22e40585b8bb8 Mon Sep 17 00:00:00 2001
+From: John Bowman <bowman@ualberta.ca>
+Date: Wed, 14 Jun 2023 22:36:35 -0600
+Subject: [PATCH] Fix --without-lsp (issue #379).
+
+---
+ common.h | 17 ++++++++---------
+ 1 file changed, 8 insertions(+), 9 deletions(-)
+
+diff --git a/common.h b/common.h
+index 13f8be106..6ee3d971f 100644
+--- a/common.h
++++ b/common.h
+@@ -17,28 +17,27 @@
+ #include "config.h"
+ #endif
+
+-#ifdef HAVE_LSP
+ #if __cplusplus < 201703L
++
++#ifdef HAVE_LSP
+ #include <boost/optional.hpp>
+ #include <boost/none.hpp>
+ using boost::optional;
+ #define nullopt boost::none
+ using boost::make_optional;
+ #else
+-#include <optional>
+-using std::optional;
+-using std::nullopt;
+-using std::make_optional;
+-#endif
+-
+-#else
+-#if __cplusplus < 201703L
+ #include "optional.hpp"
+ #define boost nonstd
+ using nonstd::optional;
+ using nonstd::nullopt;
+ using nonstd::make_optional;
+ #endif
++
++#else
++#include <optional>
++using std::optional;
++using std::nullopt;
++using std::make_optional;
+ #endif
+
+ using std::make_pair;