From 57fc904004ec11c98bcf90e064701a01e33e3b5f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 10 Nov 2025 16:00:48 +0100 Subject: [PATCH] Undo changes from 4998b114e that break existing MSVC build This defines should be in common header file and wrapped in an #ifndef clause --- libs/pbd/cartesian.cc | 3 --- libs/pbd/windows_special_dirs.cc | 4 ---- 2 files changed, 7 deletions(-) diff --git a/libs/pbd/cartesian.cc b/libs/pbd/cartesian.cc index 69483e0c75..9f2a868309 100644 --- a/libs/pbd/cartesian.cc +++ b/libs/pbd/cartesian.cc @@ -15,9 +15,6 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef COMPILER_MSVC -#define _USE_MATH_DEFINES -#endif #include diff --git a/libs/pbd/windows_special_dirs.cc b/libs/pbd/windows_special_dirs.cc index e19eb65c42..713677675f 100644 --- a/libs/pbd/windows_special_dirs.cc +++ b/libs/pbd/windows_special_dirs.cc @@ -23,10 +23,6 @@ #include "pbd/windows_special_dirs.h" -#if defined (COMPILER_MSVC) && !defined (PATH_MAX) -#define PATH_MAX _MAX_PATH -#endif - std::string PBD::get_win_special_folder_path (int csidl) {