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" #include "gs-vertexbuffer.hpp"
// OBS // OBS
#ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4201) #pragma warning(disable : 4201)
#endif
#include <obs.h> #include <obs.h>
#ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif
// Data Defines // Data Defines
#define D_TYPE "CustomShader.Type" #define D_TYPE "CustomShader.Type"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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