Some minor changes in preparation for building the newer Vamp plugins
authorJohn Emmas <johne53@tiscali.co.uk>
Sun, 5 Feb 2017 15:05:32 +0000 (15:05 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Sun, 5 Feb 2017 15:05:32 +0000 (15:05 +0000)
libs/pbd/pbd/msvc_pbd.h
libs/vamp-plugins/BarBeatTrack.cpp
msvc_extra_headers/ardourext/sys/time.h.input

index 97ac72ff27419a775580682531e08055fc667f06..462eafc7568d0ea58c8435da94a110fbae78886d 100644 (file)
@@ -142,7 +142,7 @@ LIBPBD_API     char*        PBD_APICALLTYPE     dlerror () __THROW;
 /* For whatever reason, Ardour's 'libevoral' refuses to build as a DLL if we include both 'rpc.h' */
 /* and 'WinSock2.h'. It doesn't seem to matter which order we #include them. Given that we can't  */
 /* edit 'rpc.h' or 'WinSock2.h', just make sure we don't #include them when building libevoral.   */
-#ifndef BUILDING_EVORAL
+#if !defined(BUILDING_EVORAL) && !defined(BUILDING_VAMPPLUGINS)
 #include <rpc.h>
 typedef int (FAR PBDEXTN_APICALLTYPE *CYGINIT_API)(unsigned int);
 #endif
index 2f3016cc400ed8fad6921c77f29fd97ebc9b9ee7..d2f7d73c38cddc1b08ee8995dccdfd3d4a6ebb33 100644 (file)
@@ -25,7 +25,7 @@ using std::vector;
 using std::cerr;
 using std::endl;
 
-#ifndef __GNUC__
+#if !defined(__GNUC__) && !defined(_MSC_VER)
 #include <alloca.h>
 #endif
 
index a0e7ce95f2ac02260a900444189860647d682716..b989d0cd36f0a999d93532e8e38e34cffed3ac7a 100644 (file)
@@ -7,7 +7,7 @@
 typedef long          __suseconds_t;
 typedef __suseconds_t   suseconds_t;
 #endif
-#ifndef BUILDING_EVORAL
+#if !defined(BUILDING_EVORAL) && !defined(BUILDING_VAMPPLUGINS)
 #include <WinSock2.h> /* gets 'struct timeval' - Changed by JE - 23-07-2013. Was formerly. . . #include <WinSock.h> */
 /* For whatever reason, Ardour's 'libevoral' refuses to build as a DLL if we include both 'rpc.h' */
 /* and 'WinSock2.h'. It doesn't seem to matter which order we #include them. Given that we can't  */