mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed makeh for older compilers
This commit is contained in:
parent
6237bcbed6
commit
31fb9d4b8b
@ -5,6 +5,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
#include <cstdlib>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -41,7 +42,7 @@ void gen(string sf) {
|
||||
while(getline(in, s)) {
|
||||
lineid++;
|
||||
while(s != "" && s[0] == ' ') s = s.substr(1);
|
||||
while(s.back() == 10 || s.back() == 13) s = s.substr(0, s.size() - 1);
|
||||
while(s != "" && (s[s.size()-1] == 10 || s[s.size()-1] == 13)) s = s.substr(0, s.size() - 1);
|
||||
if(in_hdr) {
|
||||
if(s == "#endif")
|
||||
in_hdr--;
|
||||
|
Loading…
Reference in New Issue
Block a user