]> git.sesse.net Git - vlc/commitdiff
* codecs.h: a few defines to avoid redefinitions.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 8 Aug 2004 01:36:56 +0000 (01:36 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 8 Aug 2004 01:36:56 +0000 (01:36 +0000)
include/codecs.h

index a1447655331673d40bb424dfc8365a2236c6bdf9..8dc1ee877034d577a331250e72b5da2b2bbd9258 100644 (file)
@@ -120,6 +120,8 @@ typedef struct {
 } BITMAPINFO, *LPBITMAPINFO;
 #endif
 
+#ifndef _RECT32_
+#define _RECT32_
 typedef struct
 #ifdef HAVE_ATTRIBUTE_PACKED
     __attribute__((__packed__))
@@ -127,9 +129,15 @@ typedef struct
 {
     int left, top, right, bottom;
 } RECT32;
+#endif
 
+#ifndef _REFERENCE_TIME_
+#define _REFERENCE_TIME_
 typedef int64_t REFERENCE_TIME;
+#endif
 
+#ifndef _VIDEOINFOHEADER_
+#define _VIDEOINFOHEADER_
 typedef struct
 #ifdef HAVE_ATTRIBUTE_PACKED
     __attribute__((__packed__))
@@ -143,6 +151,7 @@ typedef struct
     BITMAPINFOHEADER  bmiHeader;
     //int               reserved[3];
 } VIDEOINFOHEADER;
+#endif
 
 /* WAVE format wFormatTag IDs */
 #define WAVE_FORMAT_UNKNOWN             0x0000 /* Microsoft Corporation */