project: Additional #ifdef _MSC_VER checks

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-14 23:21:29 +01:00 committed by Michael Fabian Dirks
parent f41bd2c7c1
commit 52f4e4641f
17 changed files with 71 additions and 0 deletions

View file

@ -29,10 +29,14 @@
#include "gs-vertexbuffer.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
// Data Defines
#define D_TYPE "CustomShader.Type"

View file

@ -23,10 +23,14 @@
#include "obs-source.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gfx {
class source_texture {

View file

@ -25,14 +25,19 @@
#include "gs-sampler.hpp"
#include "gs-texture.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#include <graphics/matrix4.h>
#include <graphics/vec2.h>
#include <graphics/vec3.h>
#include <graphics/vec4.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class effect_parameter {

View file

@ -22,10 +22,14 @@
#include "plugin.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
gs_effect_param* gs_effect_get_param(gs_effect_t* effect, const char* name);
bool gs_set_param_int(gs_effect_t* effect, const char* name, int value);

View file

@ -21,10 +21,15 @@
#include <cinttypes>
#include <vector>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class index_buffer : public std::vector<uint32_t> {

View file

@ -24,10 +24,14 @@
#include "gs-vertexbuffer.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class mipmapper {

View file

@ -23,10 +23,14 @@
#include "gs-texture.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class rendertarget_op;

View file

@ -21,10 +21,14 @@
#include <cinttypes>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class sampler {

View file

@ -23,10 +23,14 @@
#include "utility.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class texture {

View file

@ -23,10 +23,14 @@
#include "gs-limits.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/vec3.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
struct vertex {

View file

@ -25,10 +25,14 @@
#include "util-memory.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/graphics.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace gs {
class vertex_buffer {

View file

@ -21,10 +21,14 @@
#include <functional>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace obs {
typedef std::function<void(void* data, struct audio_data const* audio, bool muted)> audio_capture_callback_t;

View file

@ -26,10 +26,14 @@
#include "util-event.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace obs {
class source {

View file

@ -25,10 +25,14 @@
#include <string>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace obs {
namespace tools {

View file

@ -22,11 +22,16 @@
#include <cinttypes>
#include <list>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include "obs-module.h"
#include "util/platform.h"
#ifdef _MSC_VER
#pragma warning(pop)
#endif
// Plugin
#define PLUGIN_NAME "Stream Effects"

View file

@ -31,10 +31,14 @@
#include "plugin.hpp"
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <obs-source.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace Source {
class MirrorAddon {

View file

@ -24,12 +24,16 @@
#include <utility>
// OBS
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201)
#endif
#include <graphics/vec2.h>
#include <graphics/vec3.h>
#include <graphics/vec4.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
// Constants
#define PI 3.1415926535897932384626433832795