From e972b9a1fb9c7d53085412c7387c757fd6faeb7d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 3 Apr 2025 14:21:54 +0200 Subject: [PATCH] fix min/max macro issue --- Distance_3/include/CGAL/Distance_3/Segment_3_Line_3.h | 2 +- ...ax_max_issues.sh => detect_cpp_files_with_min_max_issues.sh} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename Scripts/developer_scripts/{detect_cpp_files_with_max_max_issues.sh => detect_cpp_files_with_min_max_issues.sh} (100%) diff --git a/Distance_3/include/CGAL/Distance_3/Segment_3_Line_3.h b/Distance_3/include/CGAL/Distance_3/Segment_3_Line_3.h index f5d3336b5d6..21aae19bad5 100644 --- a/Distance_3/include/CGAL/Distance_3/Segment_3_Line_3.h +++ b/Distance_3/include/CGAL/Distance_3/Segment_3_Line_3.h @@ -67,7 +67,7 @@ squared_distance(const typename K::Segment_3& seg, if(crossing) return squared_distance_to_plane(normal, start_min_lp, k); else - return min(squared_distance_to_line(linedir, start_min_lp, k), squared_distance_to_line(linedir, end_min_lp, k)); + return (min)(squared_distance_to_line(linedir, start_min_lp, k), squared_distance_to_line(linedir, end_min_lp, k)); } template diff --git a/Scripts/developer_scripts/detect_cpp_files_with_max_max_issues.sh b/Scripts/developer_scripts/detect_cpp_files_with_min_max_issues.sh similarity index 100% rename from Scripts/developer_scripts/detect_cpp_files_with_max_max_issues.sh rename to Scripts/developer_scripts/detect_cpp_files_with_min_max_issues.sh