1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Remove windows ifdefs

This commit is contained in:
Leonid Fedorov
2023-03-02 15:59:42 +00:00
parent 123c345b40
commit 56f2346083
328 changed files with 9 additions and 19602 deletions

View File

@ -31,9 +31,6 @@
//#include "HdfsFsCache.h"
#include "IDBLogger.h"
#include "IDBFactory.h"
#ifdef _MSC_VER
#include "utils_utf8.h" // idb_wcstombs()
#endif
#include "installdir.h"
#include "vlarray.h"
@ -122,14 +119,7 @@ bool IDBPolicy::installPlugin(const std::string& plugin)
bool IDBPolicy::isLocalFile(const std::string& path)
{
boost::filesystem::path filepath(path);
#ifdef _MSC_VER
size_t strmblen = utf8::idb_wcstombs(0, filepath.extension().c_str(), 0) + 1;
char* outbuf = (char*)alloca(strmblen * sizeof(char));
strmblen = utf8::idb_wcstombs(outbuf, filepath.extension().c_str(), strmblen);
string fileExt(outbuf, strmblen);
#else
// string fileExt = filepath.extension().c_str();
#endif
bool isXml = filepath.extension() == ".xml";
// bool isDbrm = path.find("dbrm") != string::npos; // StorageManager: debatable whether dbrm files should
// go in the cloud