cmake: Add _CRT_SECURE_NO_WARNINGS to all projects
This prevents issues with using standard C functions, where microsoft would otherwise spit out pointless warnings to encourage using microsoft-specific functions instead.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <d3d10.h>
|
||||
#include <dxgi.h>
|
||||
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <d3d11.h>
|
||||
#include <dxgi.h>
|
||||
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <windows.h>
|
||||
#include "graphics-hook.h"
|
||||
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <dxgi.h>
|
||||
|
||||
#include "../d3d8-api/d3d8.h"
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <d3d9.h>
|
||||
#include <d3d11.h>
|
||||
#include <dxgi.h>
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <d3d10_1.h>
|
||||
#include <d3d11.h>
|
||||
#include <dxgi.h>
|
||||
|
@@ -1,5 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4214) /* nonstandard extension, non-int bitfield */
|
||||
#pragma warning(disable : 4054) /* function pointer to data pointer */
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <windows.h>
|
||||
#include <psapi.h>
|
||||
#include "graphics-hook.h"
|
||||
|
Reference in New Issue
Block a user