Bug: Preprocessor expansion in wmme_dev.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Trying to compile 2.3 with MMDevice support in WMME (wmme_dev.c) and 
there is a small issue with the preprocessor logic, at least on VS 2012. 
  PJMEDIA_WMME_DEV_USE_MMDEVICE_API isn't bring properly expanded.  I've 
attached a small patch.

Thank you,
Sean


-------------- next part --------------
Index: pjmedia/src/pjmedia-audiodev/wmme_dev.c
===================================================================
--- pjmedia/src/pjmedia-audiodev/wmme_dev.c	(revision 4940)
+++ pjmedia/src/pjmedia-audiodev/wmme_dev.c	(working copy)
@@ -39,8 +39,11 @@
 #endif
 
 #ifndef PJMEDIA_WMME_DEV_USE_MMDEVICE_API
-#   define PJMEDIA_WMME_DEV_USE_MMDEVICE_API \
-	   (defined(_WIN32_WINNT) && (_WIN32_WINNT>=0x0600))
+#   if defined(_WIN32_WINNT) && (_WIN32_WINNT>=0x0600)
+#      define PJMEDIA_WMME_DEV_USE_MMDEVICE_API 1
+#   else
+#      define PJMEDIA_WMME_DEV_USE_MMDEVICE_API 0
+#   endif
 #endif
 
 #if PJMEDIA_WMME_DEV_USE_MMDEVICE_API != 0


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux