Ver Fonte

libobs: Fix near and far redefinition on MSVC

Tommy Vercetti há 4 anos atrás
pai
commit
e1cf7c0e4b
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      libobs/graphics/graphics.c

+ 5 - 0
libobs/graphics/graphics.c

@@ -28,6 +28,11 @@
 #include "effect-parser.h"
 #include "effect.h"
 
+#ifdef _MSC_VER
+#undef near
+#undef far
+#endif
+
 static THREAD_LOCAL graphics_t *thread_graphics = NULL;
 
 static inline bool gs_obj_valid(const void *obj, const char *f,