From 60a8496503036e700e614bbfa528c5ddc8914fa4 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 18 Sep 2025 19:52:15 +0100 Subject: [PATCH] k_profiles: Fix C extern handling for cvars Reported double definition!? --- src/k_profiles.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/k_profiles.cpp b/src/k_profiles.cpp index ea3079261..55abd3bc8 100644 --- a/src/k_profiles.cpp +++ b/src/k_profiles.cpp @@ -33,9 +33,11 @@ #include "k_color.h" #include "command.h" -extern "C" consvar_t cv_dummyprofilefov, cv_fov[MAXSPLITSCREENPLAYERS]; +extern "C" { +extern consvar_t cv_dummyprofilefov, cv_fov[MAXSPLITSCREENPLAYERS]; -extern "C" CV_PossibleValue_t lastprofile_cons_t[] = {{-1, "MIN"}, {MAXPROFILES, "MAX"}, {0, NULL}}; +CV_PossibleValue_t lastprofile_cons_t[] = {{-1, "MIN"}, {MAXPROFILES, "MAX"}, {0, NULL}}; +} // List of all the profiles. static profile_t *profilesList[MAXPROFILES+1]; // +1 because we're gonna add a default "GUEST' profile.