diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-11 14:33:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-11 14:33:57 +0000 |
commit | 0a3901e1aebd64e78ed6033ac90fdaffd77ce68e (patch) | |
tree | f8bf73cedd6cc89be679481aeca50dac14129c70 /loader/wine | |
parent | 19f5552dd17d66f305d6f70c0cd35e4abe373d8b (diff) | |
download | mpv-0a3901e1aebd64e78ed6033ac90fdaffd77ce68e.tar.bz2 mpv-0a3901e1aebd64e78ed6033ac90fdaffd77ce68e.tar.xz |
Remove extern "C" declarations from loader code.
Our loader code is not a general-purpose library and not used from C++.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30538 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/wine')
-rw-r--r-- | loader/wine/basetsd.h | 8 | ||||
-rw-r--r-- | loader/wine/ldt.h | 7 | ||||
-rw-r--r-- | loader/wine/msacm.h | 8 | ||||
-rw-r--r-- | loader/wine/ntdef.h | 8 | ||||
-rw-r--r-- | loader/wine/vfw.h | 7 | ||||
-rw-r--r-- | loader/wine/winbase.h | 8 | ||||
-rw-r--r-- | loader/wine/windef.h | 8 | ||||
-rw-r--r-- | loader/wine/windows.h | 8 | ||||
-rw-r--r-- | loader/wine/winreg.h | 8 | ||||
-rw-r--r-- | loader/wine/winuser.h | 8 |
10 files changed, 0 insertions, 78 deletions
diff --git a/loader/wine/basetsd.h b/loader/wine/basetsd.h index 7a13d58dba..0ec90a9aeb 100644 --- a/loader/wine/basetsd.h +++ b/loader/wine/basetsd.h @@ -13,10 +13,6 @@ #include "config.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - /* * Win32 was easy to implement under Unix since most (all?) 32-bit * Unices uses the same type model (ILP32) as Win32, where int, long @@ -165,8 +161,4 @@ typedef __uint32 DWORD_PTR, *PDWORD_PTR; typedef INT_PTR SSIZE_T, *PSSIZE_T; typedef UINT_PTR SIZE_T, *PSIZE_T; -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_BASETSD_H */ diff --git a/loader/wine/ldt.h b/loader/wine/ldt.h index e3f511b062..e607085f33 100644 --- a/loader/wine/ldt.h +++ b/loader/wine/ldt.h @@ -26,10 +26,6 @@ typedef struct int limit_in_pages; /* is the limit in pages or bytes? */ enum seg_type type; /* segment type */ } ldt_entry; -#ifdef __cplusplus -extern "C" -{ -#endif void LDT_BytesToEntry( const unsigned long *buffer, ldt_entry *content ); void LDT_EntryToBytes( unsigned long *buffer, const ldt_entry *content ); int LDT_GetEntry( int entry, ldt_entry *content ); @@ -92,8 +88,5 @@ extern unsigned char ldt_flags_copy[LDT_SIZE]; (!((sel) & 4) || (SELECTOR_TO_ENTRY(sel) < FIRST_LDT_ENTRY_TO_ALLOC)) #define IS_SELECTOR_32BIT(sel) \ (IS_SELECTOR_SYSTEM(sel) || (GET_SEL_FLAGS(sel) & LDT_FLAGS_32BIT)) -#ifdef __cplusplus -} -#endif #endif /* MPLAYER_LDT_H */ diff --git a/loader/wine/msacm.h b/loader/wine/msacm.h index 6a0be7c068..b8b24383c6 100644 --- a/loader/wine/msacm.h +++ b/loader/wine/msacm.h @@ -9,10 +9,6 @@ #include "driver.h" #include "mmreg.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - //typedef WORD VERSION; /* major (high byte), minor (low byte) */ typedef UINT16 MMVERSION16; @@ -934,8 +930,4 @@ MMRESULT WINAPI acmStreamUnprepareHeader( HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwUnprepare ); -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_MSACM_H */ diff --git a/loader/wine/ntdef.h b/loader/wine/ntdef.h index 9e68828bbf..c7061a4c1d 100644 --- a/loader/wine/ntdef.h +++ b/loader/wine/ntdef.h @@ -6,10 +6,6 @@ #include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - #define NTAPI __stdcall #ifndef IN @@ -92,10 +88,6 @@ typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES; } -#ifdef __cplusplus -} -#endif - #include "poppack.h" #endif /* MPLAYER_NTDEF_H */ diff --git a/loader/wine/vfw.h b/loader/wine/vfw.h index 1cf94b5ac7..7bf72be42d 100644 --- a/loader/wine/vfw.h +++ b/loader/wine/vfw.h @@ -6,10 +6,6 @@ #ifndef MPLAYER_VFW_H #define MPLAYER_VFW_H //#include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" typedef struct __attribute__((__packed__)) @@ -667,7 +663,4 @@ typedef struct { #define AVIERR_USERABORT MAKE_AVIERR(198) #define AVIERR_ERROR MAKE_AVIERR(199) -#ifdef __cplusplus -} -#endif #endif /* MPLAYER_VFW_H */ diff --git a/loader/wine/winbase.h b/loader/wine/winbase.h index b7ae733553..a8fe81ee3f 100644 --- a/loader/wine/winbase.h +++ b/loader/wine/winbase.h @@ -7,10 +7,6 @@ #include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - typedef struct tagCOORD { INT16 x; INT16 y; @@ -1778,8 +1774,4 @@ VOID WINAPI SetLastError(DWORD); #define GetCurrentProcess() ((HANDLE)0xffffffff) #define GetCurrentThread() ((HANDLE)0xfffffffe) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINBASE_H */ diff --git a/loader/wine/windef.h b/loader/wine/windef.h index ddf0228dd0..24b0039cee 100644 --- a/loader/wine/windef.h +++ b/loader/wine/windef.h @@ -17,10 +17,6 @@ #define __stdcall #endif -#ifdef __cplusplus -extern "C" { -#endif - /* Misc. constants. */ #ifdef FALSE @@ -633,8 +629,4 @@ typedef const RECTL *LPCRECTL; ((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \ (r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINDEF_H */ diff --git a/loader/wine/windows.h b/loader/wine/windows.h index 505110d4b9..1443bb32b1 100644 --- a/loader/wine/windows.h +++ b/loader/wine/windows.h @@ -1,10 +1,6 @@ #ifndef MPLAYER_WINDOWS_H #define MPLAYER_WINDOWS_H -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" #include "winbase.h" #include "winuser.h" @@ -31,8 +27,4 @@ typedef KANJISTRUCT *PKANJISTRUCT; #endif /* 0 */ -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINDOWS_H */ diff --git a/loader/wine/winreg.h b/loader/wine/winreg.h index ede64c0fd5..f01c42fcca 100644 --- a/loader/wine/winreg.h +++ b/loader/wine/winreg.h @@ -7,10 +7,6 @@ #include "winbase.h" #include "winnt.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - /* #define SHELL_ERROR_SUCCESS 0L #define SHELL_ERROR_BADDB 1L @@ -50,8 +46,4 @@ typedef struct value_entW { typedef ACCESS_MASK REGSAM; -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_WINREG_H */ diff --git a/loader/wine/winuser.h b/loader/wine/winuser.h index cda96c4f23..ec451d748e 100644 --- a/loader/wine/winuser.h +++ b/loader/wine/winuser.h @@ -5,10 +5,6 @@ #include <stdarg.h> #endif -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" #include "pshpack1.h" @@ -2923,8 +2919,4 @@ VOID WINAPI ScreenSwitchEnable16(WORD); #define WC_DIALOG (LPSTR)((DWORD)((WORD)( 0x8002))) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINUSER_H */ |