changeset 33627:d9cf7500b0d8

vidix: Replace IsWinNT() forward declaration by a proper header.
author diego
date Thu, 23 Jun 2011 22:52:09 +0000
parents a621fd1e93ae
children 9eb4e5b5e4c9
files vidix/sysdep/libdha_win32.c vidix/sysdep/libdha_win32.h vidix/sysdep/pci_win32.c
diffstat 3 files changed, 28 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/sysdep/libdha_win32.c	Thu Jun 23 18:42:26 2011 +0000
+++ b/vidix/sysdep/libdha_win32.c	Thu Jun 23 22:52:09 2011 +0000
@@ -23,6 +23,7 @@
 #include <windows.h>
 #include <ddk/ntddk.h>
 #include "vidix/dhahelperwin/dhahelper.h"
+#include "libdha_win32.h"
 
 /*
   This is the request structure that applications use
@@ -49,8 +50,6 @@
 #define METHOD_NEITHER                  3
 
 
-int IsWinNT(void);
-
 int IsWinNT(void) {
   OSVERSIONINFO OSVersionInfo;
   OSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vidix/sysdep/libdha_win32.h	Thu Jun 23 22:52:09 2011 +0000
@@ -0,0 +1,26 @@
+/*
+ * VIDIX - VIDeo Interface for *niX.
+ *
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef MPLAYER_LIBDHA_WIN32_H
+#define MPLAYER_LIBDHA_WIN32_H
+
+int IsWinNT(void);
+
+#endif /* MPLAYER_LIBDHA_WIN32_H */
--- a/vidix/sysdep/pci_win32.c	Thu Jun 23 18:42:26 2011 +0000
+++ b/vidix/sysdep/pci_win32.c	Thu Jun 23 22:52:09 2011 +0000
@@ -29,6 +29,7 @@
 #include <windows.h>
 #include <ddk/ntddk.h>
 #include "vidix/dhahelperwin/dhahelper.h"
+#include "libdha_win32.h"
 
 static HANDLE hDriver;