diff --git a/.travis.yml b/.travis.yml
index a7e4840..5ee58a8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
-sudo: false
language: cpp
+sudo: required
+dist: trusty
os:
- linux
- osx
@@ -10,5 +11,6 @@ env:
script:
- make test config=coverage defines=$DEFINES -j2
- make test config=release defines=$DEFINES -j2
+ - make test cxxstd=c++98 defines=$DEFINES -j2
after_success: bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov
diff --git a/Makefile b/Makefile
index 777b82b..cd03002 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,10 @@ MAKEFLAGS+=-r
config=debug
defines=standard
+cxxstd=c++11
+# set cxxstd=any to disable use of -std=...
-BUILD=build/make-$(CXX)-$(config)-$(defines)
+BUILD=build/make-$(CXX)-$(config)-$(defines)-$(cxxstd)
SOURCES=src/pugixml.cpp $(filter-out tests/fuzz_%,$(wildcard tests/*.cpp))
EXECUTABLE=$(BUILD)/test
@@ -47,9 +49,8 @@ ifneq ($(findstring PUGIXML_NO_EXCEPTIONS,$(defines)),)
CXXFLAGS+=-fno-exceptions
endif
-ifeq ($(findstring PUGIXML_NO_CXX11,$(defines)),)
- # Can't use std=c++11 since Travis-CI has gcc 4.6.3
- CXXFLAGS+=-std=c++0x
+ifneq ($(cxxstd),any)
+ CXXFLAGS+=-std=$(cxxstd)
endif
OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 68fd217..bc40815 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -1181,4 +1181,4 @@ TEST(parse_embed_pcdata)
CHECK_NODE_EX(doc, STR("\nvalue\n\nvalue1\nvalue2outer\ntext\n\n\n"), STR("\t"), 0);
CHECK_NODE_EX(doc, STR("\n\tvalue\n\t\n\t\tvalue1\n\t\tvalue2outer\n\ttext\n\t\n\n"), STR("\t"), format_indent);
}
-}
\ No newline at end of file
+}