This repository was archived by the owner on Feb 14, 2019. It is now read-only.
File tree 6 files changed +24
-4
lines changed
6 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,7 @@ In no particular order:
43
43
44
44
* Matthew Wiebe
45
45
patch for non-italicized lowercase greek letters in ComputerModernShaper.cc
46
+
47
+ * Vincent Untz
48
+ patch for gcc 4.7 support
49
+ patch for missing return in mathmlsvg
Original file line number Diff line number Diff line change 25
25
#include < cassert>
26
26
#include < cstring>
27
27
#include < fstream>
28
+ #ifdef __linux__
29
+ /* to get getopt on Linux */
30
+ #ifndef __USE_POSIX2
31
+ #define __USE_POSIX2
32
+ #endif
33
+ #endif
34
+ #include < unistd.h>
28
35
29
36
#include < popt.h>
30
37
Original file line number Diff line number Diff line change @@ -708,6 +708,7 @@ SMS::fun_depart(const HandlerArgs& args) const
708
708
if (asLocation (args[0 ], loc1) && asLocation (args[1 ], loc2))
709
709
// delete "return 0" and insert here the code
710
710
return 0 ;
711
+ return 0 ;
711
712
}
712
713
713
714
SmartPtr<Value>
Original file line number Diff line number Diff line change 25
25
#include < cassert>
26
26
#include < cstring>
27
27
#include < fstream>
28
+ #ifdef __linux__
29
+ /* to get getopt on Linux */
30
+ #ifndef __USE_POSIX2
31
+ #define __USE_POSIX2
32
+ #endif
33
+ #endif
34
+ #include < unistd.h>
28
35
29
36
#include < popt.h>
30
37
Original file line number Diff line number Diff line change @@ -51,12 +51,13 @@ protected:
51
51
SmartPtr<typename ElementBuilder::type>
52
52
getElement (const typename Model::Element& el) const
53
53
{
54
- if (SmartPtr<typename ElementBuilder::type> elem = smart_cast<typename ElementBuilder::type>(linkerAssoc (el)))
54
+ SmartPtr<typename ElementBuilder::type> elem;
55
+ if (elem = smart_cast<typename ElementBuilder::type>(this ->linkerAssoc (el)))
55
56
return elem;
56
57
else
57
58
{
58
- SmartPtr< typename ElementBuilder::type> elem = ElementBuilder::type::create (ElementBuilder::getContext (*this ));
59
- linkerAdd (el, elem);
59
+ elem = ElementBuilder::type::create (ElementBuilder::getContext (*this ));
60
+ this -> linkerAdd (el, elem);
60
61
return elem;
61
62
}
62
63
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ protected:
47
47
findValidNodeForward (const typename Model::Node& p0) const
48
48
{
49
49
for (typename Model::Node p = p0; p; p = Model::getNextSibling (p))
50
- if (valid (p)) return Model::asElement (p);
50
+ if (this -> valid (p)) return Model::asElement (p);
51
51
return typename Model::Element ();
52
52
}
53
53
You can’t perform that action at this time.
0 commit comments