Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

#mingw #win32: replace ifdef _WIN32 to _MSC_VER for MSVC-specific code

Ivan Mahonin9f92bb89f9ec
diff --git a/toonz/sources/common/tfx/ttzpimagefx.cpp b/toonz/sources/common/tfx/ttzpimagefx.cpp
index 31d3f84e1..c2c0fdceb 100644
--- a/toonz/sources/common/tfx/ttzpimagefx.cpp
+++ b/toonz/sources/common/tfx/ttzpimagefx.cpp
@@ -10,7 +10,7 @@
//**********************************************************************************************
void parseIndexes(std::string indexes, std::vector<std::string> &items) {
-#ifdef _WIN32
+#ifdef _MSC_VER
char seps[] = " ,;";
char *token;
if (indexes == "all" || indexes == "All" || indexes == "ALL")
@@ -38,7 +38,7 @@ void parseIndexes(std::string indexes, std::vector<std::string> &items) {
void insertIndexes(std::vector<std::string> items,
PaletteFilterFxRenderData *t) {
-#ifdef _WIN32
+#ifdef _MSC_VER
for (int i = 0; i < (int)items.size(); i++) {
char *starttoken, *endtoken;
char subseps[] = "-";