summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c2
-rw-r--r--Alc/ALu.c2
-rw-r--r--CMakeLists.txt1
-rw-r--r--OpenAL32/alBuffer.c2
4 files changed, 1 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 749e1d49..d04b0a05 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -18,8 +18,6 @@
* Or go to http://www.gnu.org/copyleft/lgpl.html
*/
-#define _CRT_SECURE_NO_DEPRECATE // get rid of sprintf security warnings on VS2005
-
#include "config.h"
#include <math.h>
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 8d4b9c0a..a875e204 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -18,8 +18,6 @@
* Or go to http://www.gnu.org/copyleft/lgpl.html
*/
-#define _CRT_SECURE_NO_DEPRECATE // get rid of sprintf security warnings on VS2005
-
#include "config.h"
#include <math.h>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 780875b0..b9c51917 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,6 +80,7 @@ IF(MSVC)
SET(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -DNDEBUG")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
+ ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ELSE()
ADD_DEFINITIONS(-Wall)
CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA)
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 959d3098..0dfe05ba 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -18,8 +18,6 @@
* Or go to http://www.gnu.org/copyleft/lgpl.html
*/
-#define _CRT_SECURE_NO_DEPRECATE // get rid of sprintf security warnings on VS2005
-
#include "config.h"
#include <stdlib.h>