So i have some code like this:
void foo (int, int); void bar ( ) { //Do Stuff #if (IMPORTANT == 1) foo (1, 2); #endif }
You can also define _CRT_SECURE_NO_DEPRECATE macro in Visual studio project settings.
Goto project Properties -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
Add _CRT_SECURE_NO_DEPRECATE.
Thats it.!