diff --git a/src/extra-backend/src/Gauge_Extra_Backend.cpp b/src/extra-backend/src/Gauge_Extra_Backend.cpp index 05f760ef98f6..57460c54eba5 100644 --- a/src/extra-backend/src/Gauge_Extra_Backend.cpp +++ b/src/extra-backend/src/Gauge_Extra_Backend.cpp @@ -45,9 +45,12 @@ AircraftPresets aircraftPresets(&msfsHandler); * * @see https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/Instruments/C_C++_Gauges.htm?rhhlterm=_gauge_callback&rhsearch=_gauge_callback */ -__attribute__((export_name("Gauge_Extra_Backend_gauge_callback"))) extern "C" __attribute__((unused)) bool -Gauge_Extra_Backend(__attribute__((unused)) FsContext ctx, int service_id, void* pData) { - switch (service_id) { +extern "C" { +[[maybe_unused]] +MSFS_CALLBACK bool Gauge_Extra_Backend_gauge_callback( + [[maybe_unused]] FsContext ctx, int svcId, void* pData) { + + switch (svcId) { case PANEL_SERVICE_PRE_INSTALL: { return msfsHandler.initialize(); } @@ -61,6 +64,8 @@ Gauge_Extra_Backend(__attribute__((unused)) FsContext ctx, int service_id, void* break; } return false; + +} } // FULL list of possible messages: