diff options
Diffstat (limited to 'Build/source/utils/asymptote/texfile.h')
-rw-r--r-- | Build/source/utils/asymptote/texfile.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/texfile.h b/Build/source/utils/asymptote/texfile.h index c15861a2670..7387349c4ce 100644 --- a/Build/source/utils/asymptote/texfile.h +++ b/Build/source/utils/asymptote/texfile.h @@ -416,23 +416,29 @@ public: beginpath(); } +// Workaround libc++ parsing bug under MacOS. +#ifdef __APPLE__ + const string sep=" "; +#else + const string sep=""; +#endif void moveto(pair z) { - *out << "M"; + *out << sep << "M"; writeshifted(z); } void lineto(pair z) { - *out << "L"; + *out << sep << "L"; writeshifted(z); } void curveto(pair zp, pair zm, pair z1) { - *out << "C"; + *out << sep << "C"; writeshifted(zp); writeshifted(zm); writeshifted(z1); } void closepath() { - *out << "Z"; + *out << sep << "Z"; } string rgbhex(pen p) { |