patch-src_ipelib_ipelatex_cpp 598 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-src_ipelib_ipelatex_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
  2. Index: src/ipelib/ipelatex.cpp
  3. --- src/ipelib/ipelatex.cpp.orig
  4. +++ src/ipelib/ipelatex.cpp
  5. @@ -34,6 +34,7 @@
  6. #include "ipefontpool.h"
  7. #include "ipelatex.h"
  8. +#include <cstdlib>
  9. using namespace ipe;
  10. @@ -149,7 +150,7 @@ int Latex::scanPage(Page *page)
  11. */
  12. int Latex::createLatexSource(Stream &stream, String preamble)
  13. {
  14. - bool ancient = (getenv("IPEANCIENTPDFTEX") != 0);
  15. + bool ancient = (std::getenv("IPEANCIENTPDFTEX") != 0);
  16. int count = 0;
  17. stream << "\\pdfcompresslevel0\n"
  18. << "\\nonstopmode\n"