From 2124fb72ead59832daf35bafb0fe3d4469d09624 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 3 Feb 2018 13:55:37 +0000 Subject: Make sure that 'libardour-config,h' only gets #included when building with waf (as it only gets generated when building with waf) When building with MSVC this was getting #included in a few places which had the effect of making my session files get generated in a very old format. --- libs/ardour/ardour/port.h | 2 ++ libs/ardour/ardour/session.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 983ba7c459..99a2b60cc3 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -20,7 +20,9 @@ #ifndef __ardour_port_h__ #define __ardour_port_h__ +#ifdef WAF_BUILD #include "libardour-config.h" +#endif #include #include diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index f6873a8366..db2d8fdcbe 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -20,7 +20,9 @@ #ifndef __ardour_session_h__ #define __ardour_session_h__ +#ifdef WAF_BUILD #include "libardour-config.h" +#endif #include #include -- cgit v1.2.3