dshow: Use NO_DSHOW_STRSAFE for all dshow header inclusions

Move the NO_DSHOW_STRSAFE macro definition in front of the dshow.h
system header inclusion.

This excludes the usage of the STRSAFE functions consistently.

Further background on this can be found in the commit message of
revision 05ee0db1 where the #define was initially introduced.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
pull/8/head
Alexander Strasser 12 years ago
parent c2cbc80ae9
commit 7750c48d30
  1. 1
      libavdevice/dshow_capture.h
  2. 1
      libavdevice/dshow_filter.c
  3. 1
      libavdevice/dshow_pin.c

@ -28,6 +28,7 @@
#define COBJMACROS #define COBJMACROS
#include <windows.h> #include <windows.h>
#define NO_DSHOW_STRSAFE
#include <dshow.h> #include <dshow.h>
#include <dvdmedia.h> #include <dvdmedia.h>

@ -19,7 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define NO_DSHOW_STRSAFE
#include "dshow_capture.h" #include "dshow_capture.h"
DECLARE_QUERYINTERFACE(libAVFilter, DECLARE_QUERYINTERFACE(libAVFilter,

@ -19,7 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define NO_DSHOW_STRSAFE
#include "dshow_capture.h" #include "dshow_capture.h"
#include <stddef.h> #include <stddef.h>

Loading…
Cancel
Save