add an ugly missing #ifdef USE_GZIP to allow compilation without the flag set
Mordante: it's just a quick fix to avoid annoying complains.
This commit is contained in:
parent
4282052499
commit
bc75afb216
1 changed files with 4 additions and 1 deletions
|
@ -736,9 +736,12 @@ void read_save_file(const std::string& name, config& cfg, std::string* error_log
|
|||
|
||||
cfg.clear();
|
||||
try{
|
||||
#ifdef USE_GZIP
|
||||
if(is_gzip_file(name)) {
|
||||
read_gz(cfg, *file_stream, error_log);
|
||||
} else {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
detect_format_and_read(cfg, *file_stream, error_log);
|
||||
}
|
||||
} catch (config::error &err)
|
||||
|
|
Loading…
Add table
Reference in a new issue