To eliminate warnings like these: warning C4996: 'strcpy': This function or variable may be unsafe. warning C4996: 'getch': The POSIX name for this item is deprecated. Do this: In Solution Explorer Right click the 'project' Select 'Properties' which brings up the Property Pages dialog Expand 'Configuration Properties' Expand 'C/C++' Click on Preprocessor At the end of the 'Preprocessor Definitions' add: ;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
So why don't we just remove it, and then in conf.h.win just make the change automatically
#ifndef _CONF_H_ #define _CONF_H_ #define CIRCLE_WINDOWS +/* Windows complains about standard functions like strcmp() */ +#define _CRT_SECURE_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE /* Define to empty if the keyword does not work. */ #undef const /* Define if you don't have vprintf but do have _doprnt. */ #undef HAVE_DOPRNT /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H
Although disabling those warnings is technically "optional", I can't imagine anyone who could stand seeing all those warnings every time they compile; it really hides any actual errors/warnings that should NOT be ignored.





