diff --git a/src/main.cpp b/src/main.cpp index 6c76d62..7c04ad2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,5 @@ +#define _CRT_SECURE_NO_DEPRECATE + #include #include "ui/hooks/MenuLayer.h" #include "ui/hooks/LoadingLayer.h" diff --git a/src/utils/Utils.h b/src/utils/Utils.h index 54102c5..455f423 100644 --- a/src/utils/Utils.h +++ b/src/utils/Utils.h @@ -214,8 +214,6 @@ class Utils { return newSplash; } - #define _CRT_SECURE_NO_WARNINGS - static std::string wstrToStr(std::wstring wstr) { int slength = (int)wstr.length() + 1; @@ -226,8 +224,6 @@ class Utils { return r; } - #undef _CRT_SECURE_NO_WARNINGS - static ccColor3B colorForCode(wchar_t code){ switch(code){