diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-15 02:39:00 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-15 02:39:00 +0000 |
commit | 5599c20eb6b2cd02103958bc53b61714de350960 (patch) | |
tree | 529ae2703ba4184979e786dfc4f0f7ba94239a4d /crawl-ref/source/rltiles/tool | |
parent | 3d3d03f771d2161b20986726a05d680c5771c8f1 (diff) | |
download | crawl-ref-5599c20eb6b2cd02103958bc53b61714de350960.tar.gz crawl-ref-5599c20eb6b2cd02103958bc53b61714de350960.zip |
Brief change to my previous commit to make rltiles use those newfangled C++ headers instead.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7834 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/rltiles/tool')
-rw-r--r-- | crawl-ref/source/rltiles/tool/tile_list_processor.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/rltiles/tool/tile_list_processor.cc b/crawl-ref/source/rltiles/tool/tile_list_processor.cc index 5618c7b621..9b3ede1a70 100644 --- a/crawl-ref/source/rltiles/tool/tile_list_processor.cc +++ b/crawl-ref/source/rltiles/tool/tile_list_processor.cc @@ -1,12 +1,14 @@ #include "tile_list_processor.h" -#include <assert.h> +#include <cassert> #include <iostream> #include <fstream> #include <string.h> #include <stdlib.h> #include <map> +using namespace std; + tile_list_processor::tile_list_processor() : m_last_enum(~0), m_rim(false), @@ -648,8 +650,8 @@ bool tile_list_processor::write_data() fprintf(fp, "// This file has been automatically generated.\n\n"); fprintf(fp, "#include \"tiledef-%s.h\"\n\n", lcname.c_str()); fprintf(fp, "#include <string>\n"); - fprintf(fp, "#include <string.h>\n"); - fprintf(fp, "#include <assert.h>\n"); + fprintf(fp, "#include <cstring>\n"); + fprintf(fp, "#include <cassert>\n"); fprintf(fp, "using namespace std;\n\n"); fprintf(fp, "int _tile_%s_count[%s - %s] =\n{\n", |