Minor changes needed to make the 'mp3 import' sources build with MSVC
authorJohn Emmas <john@creativepost.co.uk>
Sun, 8 Dec 2019 15:01:59 +0000 (15:01 +0000)
committerJohn Emmas <john@creativepost.co.uk>
Sun, 8 Dec 2019 15:01:59 +0000 (15:01 +0000)
(MSVC project changes to follow...)

libs/ardour/ardour/mp3fileimportable.h
libs/ardour/mp3fileimportable.cc
msvc_extra_headers/immintrin.h.input [new file with mode: 0644]

index 61d40cd35add142225b366397c7fc1ecd3744ed7..1da65d09258a4892c07dd0e4975c49527f3e83dc 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef _ardour_mp3file_importable_source_h_
 #define _ardour_mp3file_importable_source_h_
 
-#include <boost/shared_ptr.hpp>
 #include "ardour/libardour_visibility.h"
 #include "ardour/types.h"
 #include "ardour/importable_source.h"
index 9d79b1be8a13f93f53204f03ed2a0734122113bd..d2ab4ad5bb8e194765b769fc0aad7dc9c8473983 100644 (file)
 #include "pbd/error.h"
 #include "ardour/mp3fileimportable.h"
 
-using namespace ARDOUR;
 using namespace std;
 
+namespace ARDOUR {
+
 Mp3FileImportableSource::Mp3FileImportableSource (const string& path)
        : _fd (-1)
        , _map_addr (0)
@@ -235,3 +236,5 @@ Mp3FileImportableSource::read_unlocked (Sample* dst, samplepos_t start, samplecn
        }
        return dst_off;
 }
+
+}
diff --git a/msvc_extra_headers/immintrin.h.input b/msvc_extra_headers/immintrin.h.input
new file mode 100644 (file)
index 0000000..0f8743b
--- /dev/null
@@ -0,0 +1,4 @@
+/*
+** Emtpy file to prevent Win32 compiler from complaining that the
+** file doesn't exist.
+*/