Mercurial > controlcenter
changeset 66:289a01642c2b
Win: Cleaner way to disable common function deprecation warnings.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Mon, 05 Oct 2020 23:42:59 -0500 |
parents | 36053ecad688 |
children | 222c028a785b |
files | makefile.vc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/makefile.vc Sun Oct 04 18:54:03 2020 -0500 +++ b/makefile.vc Mon Oct 05 23:42:59 2020 -0500 @@ -50,7 +50,11 @@ !include Version -CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -D__TARGET__=\"$(TARGET)\" -I. -I$(DWINCDIR) -DVER_MAJ=$(VER_MAJ) -D VER_MIN=$(VER_MIN) -DVER_REV=$(VER_REV) -D_CRT_SECURE_NO_WARNINGS +# The Visual C CRT and other Windows components have deprecated lots of common functions +# These options will hide the deprecation warnings; Comment the next line to see them +CRT_FLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNING -D_WINSOCK_DEPRECATED_NO_WARNINGS + +CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -D__TARGET__=\"$(TARGET)\" -I. -I$(DWINCDIR) -DVER_MAJ=$(VER_MAJ) -D VER_MIN=$(VER_MIN) -DVER_REV=$(VER_REV) $(CRT_FLAGS) CFLAGS_DEBUG = -Zi CFLAGS_COMPILE = -MTd LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib iphlpapi.lib $(DWLIBDIR)\dw.lib $(DWLIBDIR)\dwcompat.lib