[FFmpeg-devel] [PATCH] avcodec/nvenc: disable on cygwin to avoid _WIN32 definition hack

Michael Niedermayer michaelni at gmx.at
Thu Dec 11 02:42:28 CET 2014


Suggested-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/nvenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index dc14594..7e5e34e 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -27,6 +27,7 @@
 
 /* NVENC API is stdcall in cygwin, as it's still Windows */
 #if defined(__CYGWIN__) && !defined(_WIN32)
+#error CYGWIN is not supported
 #define _WIN32
 #define TEMP_WIN32
 #endif
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list