summaryrefslogtreecommitdiff
path: root/academic/treeview/cstring.patch
blob: cae987703f73b38ae23a373b9431d004f007f4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
--- tv-0.5.1/ncl-2.0/src/charactersblock.cpp.orig	2017-08-13 08:38:11.451581249 +0700
+++ tv-0.5.1/ncl-2.0/src/charactersblock.cpp	2017-08-13 08:38:25.267599533 +0700
@@ -8,6 +8,7 @@
 #include "discretematrix.h"
 #include "assumptionsblock.h"
 #include "charactersblock.h"
+#include <cstring>
 
 using namespace std;
 
--- tv-0.5.1/ncl-2.0/src/nexus.cpp.orig	2017-08-13 08:40:07.443734383 +0700
+++ tv-0.5.1/ncl-2.0/src/nexus.cpp	2017-08-13 08:40:17.625747774 +0700
@@ -2,6 +2,7 @@
 #include "xnexus.h"
 #include "nexustoken.h"
 #include "nexus.h"
+#include <cstring>
 
 #define NCL_NAME_AND_VERSION  "NCL version 2.01"
 #define NCL_COPYRIGHT         "Copyright (c) 2000 by Paul O. Lewis"
--- tv-0.5.1/ncl-2.0/src/nexustoken.cpp.orig	2017-08-13 08:41:41.569857692 +0700
+++ tv-0.5.1/ncl-2.0/src/nexustoken.cpp	2017-08-13 08:41:52.463871895 +0700
@@ -1,6 +1,7 @@
 #include "nexusdefs.h"
 #include "xnexus.h"
 #include "nexustoken.h"
+#include <cstring>
 
 using namespace std;
 
--- tv-0.5.1/ncl-2.0/src/nxsstring.cpp.orig	2017-08-13 08:42:36.847929712 +0700
+++ tv-0.5.1/ncl-2.0/src/nxsstring.cpp	2017-08-13 08:42:48.870945321 +0700
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <assert.h>
 #include <math.h>
+#include <cstring>
 #include "nxsstring.h"
 
 nxsstring& nxsstring::operator+=( const double d )
--- tv-0.5.1/TreeLib/Parse.cpp.orig	2017-08-13 08:43:50.188024809 +0700
+++ tv-0.5.1/TreeLib/Parse.cpp	2017-08-13 08:44:00.407038015 +0700
@@ -23,6 +23,7 @@
  
 #include <ctype.h>
 #include "Parse.h"
+#include <cstring>
 
 // Return the next token in the string
 tokentype Parser::NextToken ()
--- tv-0.5.1/TreeLib/TreeLib.cpp.orig	2017-08-13 08:45:24.898146879 +0700
+++ tv-0.5.1/TreeLib/TreeLib.cpp	2017-08-13 08:45:33.518157938 +0700
@@ -23,6 +23,7 @@
 
 #include "TreeLib.h"
 #include "Parse.h"
+#include <cstdlib>
 
 #include <vector>
 
--- tv-0.5.1/TreeLib/treereader.cpp.orig        2017-08-13 08:47:09.041280171 +0700
+++ tv-0.5.1/TreeLib/treereader.cpp     2017-08-13 08:51:04.192577614 +0700
@@ -22,6 +22,8 @@
  // $Id: treereader.cpp,v 1.5 2003/09/10 12:58:16 rdmp1c Exp $
 
 #include "treereader.h"
+#include <cstring>
+#include <stdlib.h>
 
 #if __MWERKS__
        #include <string.h>