Bladeren bron

libobs: Fix near and far redefinition on MSVC

Tommy Vercetti 4 jaren geleden
bovenliggende
commit
e1cf7c0e4b
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  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,