projects
/
platform
/
upstream
/
libvorbis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Instead of SIGFPE when bytespersample is zero or negative, return OV_EINVAL
[platform/upstream/libvorbis.git]
/
lib
/
CMakeLists.txt
diff --git
a/lib/CMakeLists.txt
b/lib/CMakeLists.txt
index
7e8ca45
..
7cd68e5
100644
(file)
--- a/
lib/CMakeLists.txt
+++ b/
lib/CMakeLists.txt
@@
-67,6
+67,12
@@
if(WIN32)
list(APPEND VORBISFILE_SOURCES ../win32/vorbisfile.def)
endif()
list(APPEND VORBISFILE_SOURCES ../win32/vorbisfile.def)
endif()
+if(MSVC)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
+ add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
+endif()
+
if (NOT BUILD_FRAMEWORK)
add_library(vorbis ${VORBIS_HEADERS} ${VORBIS_SOURCES})
add_library(vorbisenc ${VORBISENC_SOURCES})
if (NOT BUILD_FRAMEWORK)
add_library(vorbis ${VORBIS_HEADERS} ${VORBIS_SOURCES})
add_library(vorbisenc ${VORBISENC_SOURCES})