shithub: openh264

Download patch

ref: b1c070cf8bddbeca4d1b652749cb15e7b0f835b2
parent: d1b0713c76f27226b57e357196be8cc9037eb6e9
author: Martin Storsjö <martin@martin.st>
date: Sat Dec 28 18:31:14 EST 2013

Remove "pragma once"

The same thing is handled by proper standard C header include guards
in all these files.

--- a/codec/api/svc/codec_def.h
+++ b/codec/api/svc/codec_def.h
@@ -33,10 +33,6 @@
 #ifndef WELS_VIDEO_CODEC_DEFINITION_H__
 #define WELS_VIDEO_CODEC_DEFINITION_H__
 
-#if defined(WIN32)
-#pragma once
-#endif//WIN32
-
 typedef enum {
   /*rgb color formats*/
   videoFormatRGB        = 1,
--- a/codec/console/dec/inc/d3d9_utils.h
+++ b/codec/console/dec/inc/d3d9_utils.h
@@ -43,8 +43,6 @@
 #ifndef WELS_D3D9_UTILS_H__
 #define WELS_D3D9_UTILS_H__
 
-//#pragma once	// do not use this due cross platform, esp for Solaris
-
 #include <stdio.h>
 #include "codec_def.h"
 
--- a/codec/console/dec/inc/dec_console.h
+++ b/codec/console/dec/inc/dec_console.h
@@ -38,8 +38,6 @@
 #ifndef DEC_CONSOLE_H__
 #define DEC_CONSOLE_H__
 
-#pragma once
-
 #include "code_api.h"
 
 /////////////////////////////////////////////////////////////////////////////////////
--- a/codec/decoder/plus/inc/StdAfx.h
+++ b/codec/decoder/plus/inc/StdAfx.h
@@ -38,10 +38,6 @@
 #if !defined(AFX_STDAFX_H__695FA8A5_BDC4_4206_8B7D_EE290F91E766__INCLUDED_)
 #define AFX_STDAFX_H__695FA8A5_BDC4_4206_8B7D_EE290F91E766__INCLUDED_
 
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
 
 // Insert your headers here
 #define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
--- a/codec/decoder/plus/inc/welsDecoderExt.h
+++ b/codec/decoder/plus/inc/welsDecoderExt.h
@@ -47,10 +47,6 @@
 #include "decoder_context.h"
 #include "welsCodecTrace.h"
 
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
 
 class ISVCDecoder;