0025442: Visualization, TKOpenGl - prevent inclusion of system header glxext.h
[occt.git] / src / OpenGl / OpenGl_AVIWriter.cxx
old mode 100755 (executable)
new mode 100644 (file)
index e73a6a1..961da54
@@ -1,11 +1,25 @@
-// File:      OpenGl_AVIWriter.cxx
-// Created:   15.04.07 13:44
-// Author:    Alexey MORENOV & Alexander GRIGORIEV
-// Copyright: Open CASCADE 2007
+// Created on: 2007-04-15
+// Created by: Alexey MORENOV & Alexander GRIGORIEV
+// Copyright (c) 2007-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 #include <OpenGl_AVIWriter.hxx>
 
-#ifdef WNT
+#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_VIDEOCAPTURE)
+  #ifdef _MSC_VER
+    #pragma comment (lib, "vfw32.lib")
+  #endif
+
 OpenGl_AVIWriter* OpenGl_AVIWriter::MyAVIWriterInstance = 0L;
 
 OpenGl_AVIWriter * OpenGl_AVIWriter::GetInstance()
@@ -464,4 +478,4 @@ Standard_Boolean OpenGl_AVIWriter_AllowWriting(void * hWin)
   return aResult;
 }
 
-#endif //WNT
+#endif