Commit 081625c6 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Use mangle names

parent 416bbaef
...@@ -1398,7 +1398,7 @@ static int gzopen_frontend(char *pathname, int oflags, int mode) ...@@ -1398,7 +1398,7 @@ static int gzopen_frontend(char *pathname, int oflags, int mode)
} }
#endif #endif
gzf = gzdopen(fd, gzoflags); gzf = cm_zlib_gzdopen(fd, gzoflags);
if (!gzf) if (!gzf)
{ {
errno = ENOMEM; errno = ENOMEM;
...@@ -1417,8 +1417,8 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt ...@@ -1417,8 +1417,8 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt
char buf[TAR_MAXPATHLEN]; char buf[TAR_MAXPATHLEN];
char pathname[TAR_MAXPATHLEN]; char pathname[TAR_MAXPATHLEN];
tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) gzclose, tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) cm_zlib_gzclose,
(readfunc_t) gzread, (writefunc_t) gzwrite (readfunc_t) cm_zlib_gzread, (writefunc_t) cm_zlib_gzwrite
}; };
// Ok, this libtar is not const safe. for now use auto_ptr hack // Ok, this libtar is not const safe. for now use auto_ptr hack
...@@ -1477,8 +1477,8 @@ bool cmSystemTools::ExtractTar(const char* outFileName, const std::vector<cmStdS ...@@ -1477,8 +1477,8 @@ bool cmSystemTools::ExtractTar(const char* outFileName, const std::vector<cmStdS
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
TAR *t; TAR *t;
tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) gzclose, tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) cm_zlib_gzclose,
(readfunc_t) gzread, (writefunc_t) gzwrite (readfunc_t) cm_zlib_gzread, (writefunc_t) cm_zlib_gzwrite
}; };
// Ok, this libtar is not const safe. for now use auto_ptr hack // Ok, this libtar is not const safe. for now use auto_ptr hack
...@@ -1521,8 +1521,8 @@ bool cmSystemTools::ListTar(const char* outFileName, std::vector<cmStdString>& f ...@@ -1521,8 +1521,8 @@ bool cmSystemTools::ListTar(const char* outFileName, std::vector<cmStdString>& f
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
TAR *t; TAR *t;
tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) gzclose, tartype_t gztype = { (openfunc_t) gzopen_frontend, (closefunc_t) cm_zlib_gzclose,
(readfunc_t) gzread, (writefunc_t) gzwrite (readfunc_t) cm_zlib_gzread, (writefunc_t) cm_zlib_gzwrite
}; };
// Ok, this libtar is not const safe. for now use auto_ptr hack // Ok, this libtar is not const safe. for now use auto_ptr hack
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment