missing includes, fixes clang

This commit is contained in:
espie 2017-05-07 20:35:07 +00:00
parent c651b84ab4
commit 0c8d9cf0ea
6 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ipe6upgrade_ipe6upgrade_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
Index: src/ipe6upgrade/ipe6upgrade.cpp
--- src/ipe6upgrade/ipe6upgrade.cpp.orig
+++ src/ipe6upgrade/ipe6upgrade.cpp
@@ -30,6 +30,8 @@
#include "ipexml.h"
#include "ipeattributes.h"
+#include <cstdlib>
+using std::exit;
using namespace ipe;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ipeextract_ipeextract_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
Index: src/ipeextract/ipeextract.cpp
--- src/ipeextract/ipeextract.cpp.orig
+++ src/ipeextract/ipeextract.cpp
@@ -31,6 +31,8 @@
#include "ipexml.h"
#include "ipeutils.h"
#include "ipepdfparser.h"
+#include <cstdlib>
+using std::exit;
using namespace ipe;

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_ipelib_ipebase_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
Index: src/ipelib/ipebase.cpp
--- src/ipelib/ipebase.cpp.orig
+++ src/ipelib/ipebase.cpp
@@ -30,6 +30,7 @@
#include "ipebase.h"
#include <cmath>
+#include <cstdlib>
using namespace ipe;

View File

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

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_ipelib_ipepdfparser_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
Index: src/ipelib/ipepdfparser.cpp
--- src/ipelib/ipepdfparser.cpp.orig
+++ src/ipelib/ipepdfparser.cpp
@@ -30,6 +30,7 @@
#include "ipepdfparser.h"
#include "ipeutils.h"
+#include <cstdlib>
using namespace ipe;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ipetoipe_ipetoipe_cpp,v 1.1 2017/05/07 20:35:07 espie Exp $
Index: src/ipetoipe/ipetoipe.cpp
--- src/ipetoipe/ipetoipe.cpp.orig
+++ src/ipetoipe/ipetoipe.cpp
@@ -29,6 +29,8 @@
*/
#include "ipedoc.h"
+#include <cstdlib>
+using std::exit;
using ipe::Document;
using ipe::String;