plugins: Fix build of unai/neon
[pcsx_rearmed.git] / plugins / gpu_neon / psx_gpu_if.c
index 788e3b4..59f6993 100644 (file)
@@ -9,7 +9,12 @@
  */
 
 #include <stdio.h>
+
+#ifdef _WIN32
+#include <mman.h>
+#else
 #include <sys/mman.h>
+#endif
 
 extern const unsigned char cmd_lengths[256];
 #define command_lengths cmd_lengths
@@ -133,7 +138,8 @@ void renderer_sync_ecmds(uint32_t *ecmds)
 void renderer_update_caches(int x, int y, int w, int h)
 {
   update_texture_cache_region(&egpu, x, y, x + w - 1, y + h - 1);
-  if (gpu.state.enhancement_active && !gpu.status.rgb24)
+  if (gpu.state.enhancement_active &&
+      !(gpu.status & PSX_GPU_STATUS_RGB24))
     sync_enhancement_buffers(x, y, w, h);
 }
 
@@ -199,3 +205,9 @@ void renderer_set_config(const struct rearmed_cbs *cbs)
   }
 
 }
+void renderer_sync(void)
+{
+}
+void renderer_notify_update_lace(int updated)
+{
+}