[MPlayer-cvslog] r26138 - in trunk: libmpdemux/ms_hdr.h loader/wine/mmreg.h loader/wine/vfw.h

diego subversion at mplayerhq.hu
Sat Mar 1 11:48:29 CET 2008


Author: diego
Date: Sat Mar  1 11:48:29 2008
New Revision: 26138

Log:
Fix illegal identifiers starting with _ and capital letters.


Modified:
   trunk/libmpdemux/ms_hdr.h
   trunk/loader/wine/mmreg.h
   trunk/loader/wine/vfw.h

Modified: trunk/libmpdemux/ms_hdr.h
==============================================================================
--- trunk/libmpdemux/ms_hdr.h	(original)
+++ trunk/libmpdemux/ms_hdr.h	Sat Mar  1 11:48:29 2008
@@ -1,9 +1,9 @@
 #ifndef MPLAYER_MS_HDR_H
 #define MPLAYER_MS_HDR_H
 
-#ifndef _WAVEFORMATEX_
-#define _WAVEFORMATEX_
-typedef struct __attribute__((__packed__)) _WAVEFORMATEX {
+#ifndef WAVEFORMATEX_
+#define WAVEFORMATEX_
+typedef struct __attribute__((__packed__)) WAVEFORMATEX {
   unsigned short  wFormatTag;
   unsigned short  nChannels;
   unsigned int    nSamplesPerSec;
@@ -12,10 +12,10 @@ typedef struct __attribute__((__packed__
   unsigned short  wBitsPerSample;
   unsigned short  cbSize;
 } WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX;
-#endif /* _WAVEFORMATEX_ */
+#endif /* WAVEFORMATEX_ */
 
-#ifndef _MPEGLAYER3WAVEFORMAT_
-#define _MPEGLAYER3WAVEFORMAT_
+#ifndef MPEGLAYER3WAVEFORMAT_
+#define MPEGLAYER3WAVEFORMAT_
 typedef struct __attribute__((__packed__)) mpeglayer3waveformat_tag {
   WAVEFORMATEX wf;
   unsigned short wID;
@@ -24,11 +24,11 @@ typedef struct __attribute__((__packed__
   unsigned short nFramesPerBlock;
   unsigned short nCodecDelay;
 } MPEGLAYER3WAVEFORMAT;
-#endif /* _MPEGLAYER3WAVEFORMAT_ */
+#endif /* MPEGLAYER3WAVEFORMAT_ */
 
 /* windows.h #includes wingdi.h on MinGW. */
-#if !defined(_BITMAPINFOHEADER_) && !defined(_WINGDI_H)
-#define _BITMAPINFOHEADER_
+#if !defined(BITMAPINFOHEADER_) && !defined(_WINGDI_H)
+#define BITMAPINFOHEADER_
 typedef struct __attribute__((__packed__))
 {
     int 	biSize;
@@ -47,7 +47,7 @@ typedef struct {
 	BITMAPINFOHEADER bmiHeader;
 	int	bmiColors[1];
 } BITMAPINFO, *LPBITMAPINFO;
-#endif
+#endif /* !defined(BITMAPINFOHEADER_) && !defined(_WINGDI_H) */
 
 #ifndef le2me_BITMAPINFOHEADER
 #ifdef WORDS_BIGENDIAN

Modified: trunk/loader/wine/mmreg.h
==============================================================================
--- trunk/loader/wine/mmreg.h	(original)
+++ trunk/loader/wine/mmreg.h	Sat Mar  1 11:48:29 2008
@@ -48,8 +48,8 @@ typedef struct __attribute__((__packed__
 } ECHOWAVEFILTER, *PECHOWAVEFILTER, *NPECHOWAVEFILTER, *LPECHOWAVEFILTER;
 #endif  /* WAVEFILTER_ECHO */
     
-#ifndef _WAVEFORMATEX_
-#define _WAVEFORMATEX_
+#ifndef WAVEFORMATEX_
+#define WAVEFORMATEX_
 typedef struct __attribute__((__packed__)) WAVEFORMATEX {
   WORD   wFormatTag;
   WORD   nChannels;
@@ -59,7 +59,7 @@ typedef struct __attribute__((__packed__
   WORD   wBitsPerSample;
   WORD   cbSize;
 } WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX;
-#endif /* _WAVEFORMATEX_ */
+#endif /* WAVEFORMATEX_ */
 
 #ifndef GUID_TYPE
 #define GUID_TYPE
@@ -72,8 +72,8 @@ typedef struct
 } GUID;
 #endif
 
-#ifndef _WAVEFORMATEXTENSIBLE_
-#define _WAVEFORMATEXTENSIBLE_
+#ifndef WAVEFORMATEXTENSIBLE_
+#define WAVEFORMATEXTENSIBLE_
 typedef struct {
     WAVEFORMATEX    Format;
     union {
@@ -85,10 +85,10 @@ typedef struct {
                                         /* present in stream  */
     GUID            SubFormat;
 } WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;
-#endif // !_WAVEFORMATEXTENSIBLE_
+#endif /* WAVEFORMATEXTENSIBLE_ */
 
-#ifndef _MPEGLAYER3WAVEFORMAT_
-#define _MPEGLAYER3WAVEFORMAT_
+#ifndef MPEGLAYER3WAVEFORMAT_
+#define MPEGLAYER3WAVEFORMAT_
 typedef struct mpeglayer3waveformat_tag {
   WORD   wFormatTag WINE_PACKED;
   WORD   nChannels WINE_PACKED;
@@ -103,7 +103,7 @@ typedef struct mpeglayer3waveformat_tag 
   WORD          nFramesPerBlock WINE_PACKED;
   WORD          nCodecDelay WINE_PACKED;
 } MPEGLAYER3WAVEFORMAT;
-#endif /* !_MPEGLAYER3WAVEFORMAT_ */
+#endif /* MPEGLAYER3WAVEFORMAT_ */
 
 /* WAVE form wFormatTag IDs */
 

Modified: trunk/loader/wine/vfw.h
==============================================================================
--- trunk/loader/wine/vfw.h	(original)
+++ trunk/loader/wine/vfw.h	Sat Mar  1 11:48:29 2008
@@ -19,8 +19,8 @@ typedef struct __attribute__((__packed__
     long   bfOffBits;
 } BITMAPFILEHEADER;
 
-#ifndef _BITMAPINFOHEADER_
-#define _BITMAPINFOHEADER_
+#ifndef BITMAPINFOHEADER_
+#define BITMAPINFOHEADER_
 typedef struct __attribute__((__packed__))
 {
     long 	biSize;



More information about the MPlayer-cvslog mailing list