Merge pull request #5039 from liedtkeInTUM/fix_getenv_uwp
std::getenv is not supported using uwppull/5041/head^2
commit
414091ab11
|
@ -214,7 +214,12 @@ void GetImporterInstanceList(std::vector<BaseImporter *> &out) {
|
||||||
// Some importers may be unimplemented or otherwise unsuitable for general use
|
// Some importers may be unimplemented or otherwise unsuitable for general use
|
||||||
// in their current state. Devs can set ASSIMP_ENABLE_DEV_IMPORTERS in their
|
// in their current state. Devs can set ASSIMP_ENABLE_DEV_IMPORTERS in their
|
||||||
// local environment to enable them, otherwise they're left out of the registry.
|
// local environment to enable them, otherwise they're left out of the registry.
|
||||||
|
#if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
|
||||||
|
// not supported under uwp
|
||||||
const char *envStr = std::getenv("ASSIMP_ENABLE_DEV_IMPORTERS");
|
const char *envStr = std::getenv("ASSIMP_ENABLE_DEV_IMPORTERS");
|
||||||
|
#else
|
||||||
|
const char *envStr = { "0" };
|
||||||
|
#endif
|
||||||
bool devImportersEnabled = envStr && strcmp(envStr, "0");
|
bool devImportersEnabled = envStr && strcmp(envStr, "0");
|
||||||
|
|
||||||
// Ensure no unused var warnings if all uses are #ifndef'd away below:
|
// Ensure no unused var warnings if all uses are #ifndef'd away below:
|
||||||
|
@ -377,9 +382,6 @@ void GetImporterInstanceList(std::vector<BaseImporter *> &out) {
|
||||||
#ifndef ASSIMP_BUILD_NO_IQM_IMPORTER
|
#ifndef ASSIMP_BUILD_NO_IQM_IMPORTER
|
||||||
out.push_back(new IQMImporter());
|
out.push_back(new IQMImporter());
|
||||||
#endif
|
#endif
|
||||||
//#ifndef ASSIMP_BUILD_NO_STEP_IMPORTER
|
|
||||||
// out.push_back(new StepFile::StepFileImporter());
|
|
||||||
//#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** will delete all registered importers. */
|
/** will delete all registered importers. */
|
||||||
|
|
Loading…
Reference in New Issue