git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b6776
)
Disable standard library deprecation when MSVC >= 2005
author
krj
<krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 30 Aug 2009 14:12:56 +0000
(14:12 +0000)
committer
krj
<krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 30 Aug 2009 14:12:56 +0000
(14:12 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29626
f5534014
-38df-0310-8fa8-
9805f1628bb7
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index e55549589750f747f7c6b6446d429e0a9dc02e7f..448fc43033930c46ad0476f222beb888b4b5ccbd 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-177,6
+177,11
@@
endif()
if(WIN32)
add_definitions(-DHAVE_WIN32_LIBWIRESHARK_LIB -D_NEED_VAR_IMPORT_)
set(WS_VAR_IMPORT "__declspec(dllimport) extern")
+
+ # Disable deprecation
+ if(MSVC80 OR MSVC90)
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
+ endif()
endif()