* [PATCH] msvc: fix build with Visual Studio 2015
@ 2018-04-27 11:10 Mans Rullgard
0 siblings, 0 replies; only message in thread
From: Mans Rullgard @ 2018-04-27 11:10 UTC (permalink / raw)
To: sox-devel
The FILE type is completely opaque in VS2015, so the rewind_pipe()
hack is not possible.
---
src/formats.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/formats.c b/src/formats.c
index 724a4cdac808..f3efe764cbb2 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -415,6 +415,8 @@ static void UNUSED rewind_pipe(FILE * fp)
fp->_r += PIPE_AUTO_DETECT_SIZE;
#elif defined __GLIBC__
fp->_IO_read_ptr = fp->_IO_read_base;
+#elif defined _MSC_VER && _MSC_VER >= 1900
+ #define NO_REWIND_PIPE
#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || \
defined _ISO_STDIO_ISO_H || defined __sgi
fp->_ptr = fp->_base;
--
2.17.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-27 11:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 11:10 [PATCH] msvc: fix build with Visual Studio 2015 Mans Rullgard
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).