Files
allwpilib/upstream_utils/libdogleg_patches/0001-Convert-to-C.patch
Elliot Scher 85507a6c65 [wpical] Add WPIcal: Field Calibration Tool (#6915)
Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
Co-authored-by: Jade <spacey-sooty@proton.me>
Co-authored-by: Matthew Morley <matthew.morley.ca@gmail.com>
2024-12-28 20:24:32 -08:00

39 lines
1.2 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gold856 <117957790+Gold856@users.noreply.github.com>
Date: Fri, 29 Nov 2024 19:52:22 -0500
Subject: [PATCH 1/3] Convert to C++
---
dogleg.c => dogleg.cpp | 0
dogleg.h | 8 +++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
rename dogleg.c => dogleg.cpp (100%)
diff --git a/dogleg.c b/dogleg.cpp
similarity index 100%
rename from dogleg.c
rename to dogleg.cpp
diff --git a/dogleg.h b/dogleg.h
index 74337263a89d3448f55e125db6702ebfa7588b97..4a23b669a30642d290549bb94a1c787f079d0647 100644
--- a/dogleg.h
+++ b/dogleg.h
@@ -126,7 +126,9 @@ typedef struct
} dogleg_solverContext_t;
-
+#ifdef __cplusplus
+extern "C" {
+#endif
// Fills in the given structure with the default parameter set
void dogleg_getDefaultParameters(dogleg_parameters2_t* parameters);
@@ -293,3 +295,7 @@ double dogleg_getOutliernessTrace_newFeature_sparse(const double* Jqu
int NoutlierFeatures,
dogleg_operatingPoint_t* point,
dogleg_solverContext_t* ctx);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif