From 7f486e146d354cbf8b36d8762318dd21722474c6 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 2 Jan 2015 14:33:35 +0000 Subject: [PATCH] Accommodate some newly introduced source files for building with MSVC (libpbd) --- libs/pbd/MSVCpbd/pbd.vcproj | 16 ++++++++++++++++ libs/pbd/timing.cc | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/libs/pbd/MSVCpbd/pbd.vcproj b/libs/pbd/MSVCpbd/pbd.vcproj index 244328d41b..4e3866d01b 100644 --- a/libs/pbd/MSVCpbd/pbd.vcproj +++ b/libs/pbd/MSVCpbd/pbd.vcproj @@ -450,6 +450,14 @@ RelativePath="..\textreceiver.cc" > + + + + @@ -800,6 +808,14 @@ RelativePath="..\pbd\textreceiver.h" > + + + + diff --git a/libs/pbd/timing.cc b/libs/pbd/timing.cc index b811c09f96..c6f76211c2 100644 --- a/libs/pbd/timing.cc +++ b/libs/pbd/timing.cc @@ -22,6 +22,11 @@ #include #include +#ifdef COMPILER_MSVC +#undef min +#undef max +#endif + namespace PBD { bool -- 2.30.2