Add missing #if for the "Threaded SPU" core option
authorBobby Smith <33353403+bslenul@users.noreply.github.com>
Wed, 1 Nov 2023 18:21:20 +0000 (19:21 +0100)
committernotaz <notasas@gmail.com>
Wed, 1 Nov 2023 20:45:53 +0000 (22:45 +0200)
frontend/libretro.c

index c7439dd..c47d260 100644 (file)
@@ -2240,6 +2240,7 @@ static void update_variables(bool in_flight)
          spu_config.iUseInterpolation = 0;
    }
 
+#if P_HAVE_PTHREAD
    var.value = NULL;
    var.key = "pcsx_rearmed_spu_thread";
    if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
@@ -2249,6 +2250,7 @@ static void update_variables(bool in_flight)
       else
          spu_config.iUseThread = 0;
    }
+#endif
 
 #if 0 // currently disabled, see USE_READ_THREAD in libpcsxcore/cdriso.c
    if (P_HAVE_PTHREAD) {