diff options
author | Patric Stout <truebrain@openttd.org> | 2019-03-10 16:41:01 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-03-11 10:16:00 +0100 |
commit | 7adae09897c6f17a60de9468e9e11d166ff52278 (patch) | |
tree | 384a80857b497ee0b2393e515f91309e2593b765 /src/textfile_gui.cpp | |
parent | dcc5183dd0b1eba4163211a3c28f5acc4579e8fd (diff) | |
download | openttd-7adae09897c6f17a60de9468e9e11d166ff52278.tar.xz |
Codechange: liblzma is called liblzma, how ever strange that might be
It is the only library we use that calls itself with 'lib' in the
name. This might be confusing, but with the arrival of cmake a lot
of these things are automated. And detection will find 'liblzma',
not 'lzma', like with 'lzo', 'zlib', ..
Diffstat (limited to 'src/textfile_gui.cpp')
-rw-r--r-- | src/textfile_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp index ff5226c2b..3480a2aef 100644 --- a/src/textfile_gui.cpp +++ b/src/textfile_gui.cpp @@ -25,7 +25,7 @@ #include <zlib.h> #endif -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) #include <lzma.h> #endif @@ -257,7 +257,7 @@ static void Gunzip(byte **bufp, size_t *sizep) } #endif -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) /** * Do an in-memory xunzip operation. This works on a .xz or (legacy) @@ -332,7 +332,7 @@ static void Xunzip(byte **bufp, size_t *sizep) if (read != filesize) return; -#if defined(WITH_ZLIB) || defined(WITH_LZMA) +#if defined(WITH_ZLIB) || defined(WITH_LIBLZMA) const char *suffix = strrchr(textfile, '.'); if (suffix == NULL) return; #endif @@ -342,7 +342,7 @@ static void Xunzip(byte **bufp, size_t *sizep) if (strcmp(suffix, ".gz") == 0) Gunzip((byte**)&this->text, &filesize); #endif -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) /* In-place xunzip */ if (strcmp(suffix, ".xz") == 0) Xunzip((byte**)&this->text, &filesize); #endif @@ -407,7 +407,7 @@ const char *GetTextfile(TextfileType type, Subdirectory dir, const char *filenam #if defined(WITH_ZLIB) "txt.gz", #endif -#if defined(WITH_LZMA) +#if defined(WITH_LIBLZMA) "txt.xz", #endif }; |