0027118: Configuration - do not suppress deprecation warnings when using msvc
authorkgv <kgv@opencascade.com>
Sat, 30 Jan 2016 12:51:35 +0000 (15:51 +0300)
committerabv <abv@opencascade.com>
Sat, 20 Feb 2016 07:10:10 +0000 (10:10 +0300)
commitfe9b8ff2f2a2429b879dd3f03eae1fa8c7a03c53
treed8c453c9f220cc37c6abccd663d3de2e834e8e27
parent8ddd25b88775b351e3737e3827a7a809105b6965
0027118: Configuration - do not suppress deprecation warnings when using msvc

Patch removes option -wd4996 from VS project settings (which suppresses old deprecation warnings).
Instead, macros _CRT_SECURE_NO_WARNINGS (suppresses 444 warnings) and _CRT_NONSTDC_NO_DEPRECATE (suppresses 17 warnings) have been added.

Deprecation warning on GetVersionEx() has been suppressed locally in OSD_Host.cxx.
In STEPConstruct_AP203Context.cxx, OSD_Host is used instead of low-level system functions.
This eliminates dependency of TKSTEP on winsock32.lib on Windows.
12 files changed:
adm/cmake/occt_defs_flags.cmake
adm/templates/template.vc10
adm/templates/template.vc10x
adm/templates/template.vc8
adm/templates/template.vc8x
adm/templates/template.vc9
adm/templates/template.vc9x
src/OSD/OSD_Environment.cxx
src/OSD/OSD_Host.cxx
src/QANCollection/QANCollection_Stl.cxx
src/STEPConstruct/STEPConstruct_AP203Context.cxx
src/TKSTEP/EXTERNLIB