diff options
author | Dimitri Papadopoulos <dimitri_at@users.sf.net> | 2006-05-03 07:06:26 +0000 |
---|---|---|
committer | Dimitri Papadopoulos <dimitri_at@users.sf.net> | 2006-05-03 07:06:26 +0000 |
commit | cedb1281cfd8ddc0fb35c2ceb6ce10666ea5c924 (patch) | |
tree | 9265ef1d8e5393e9db705a441761fa06f935fa51 | |
parent | 100b96f7b9904af93e43ad6b1cb8a67039ac72cc (diff) | |
download | newlib-cedb1281cfd8ddc0fb35c2ceb6ce10666ea5c924.zip newlib-cedb1281cfd8ddc0fb35c2ceb6ce10666ea5c924.tar.gz newlib-cedb1281cfd8ddc0fb35c2ceb6ce10666ea5c924.tar.bz2 |
* include/errors.h: New file.
* include/dshow.h: Include <errors.h>.
-rw-r--r-- | winsup/w32api/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/w32api/include/dshow.h | 1 | ||||
-rw-r--r-- | winsup/w32api/include/errors.h | 23 |
3 files changed, 30 insertions, 1 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 6f51895..8728c99 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,5 +1,10 @@ 2006-05-02 Dimitri Papadopoulos <papadopo@users.sourceforge.net> + * include/errors.h: New file. + * include/dshow.h: Include <errors.h>. + +2006-05-02 Dimitri Papadopoulos <papadopo@users.sourceforge.net> + * include/dshow.h: New file. * include/evcode.h: New file. * include/audevcod.h: New file. @@ -17,7 +22,7 @@ * include/mprapi.h (RAS_FLAGS_*,PPP_LCP_*,RASCCPCA_* ,PPP_CCP_*,MAX_*, RASPRIV_*,*ADDRESSLEN,MPR_ENABLE_*): Define. * include/mprapi.h (RAS_*_CONDITION): Add enums. - * include/mprapi.h <lmcons.h>: For NETBIOS_NAME_LEN, UNLEN, DLEN. + * include/mprapi.h: <lmcons.h> for NETBIOS_NAME_LEN, UNLEN, DLEN. 2006-05-02 Dimitri Papadopoulos <papadopo@users.sourceforge.net> diff --git a/winsup/w32api/include/dshow.h b/winsup/w32api/include/dshow.h index b8754ba..fce9a61 100644 --- a/winsup/w32api/include/dshow.h +++ b/winsup/w32api/include/dshow.h @@ -7,5 +7,6 @@ #include <evcode.h> #include <audevcod.h> #include <dvdevcod.h> +#include <errors.h> #endif diff --git a/winsup/w32api/include/errors.h b/winsup/w32api/include/errors.h new file mode 100644 index 0000000..ee20929 --- /dev/null +++ b/winsup/w32api/include/errors.h @@ -0,0 +1,23 @@ +#ifndef _ERRORS_H +#define _ERRORS_H +#if __GNUC__ >=3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAX_ERROR_TEXT_LEN 160 +DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD); +DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD); +#ifdef UNICODE +#define AMGetErrorText AMGetErrorTextW +#else +#define AMGetErrorText AMGetErrorTextA +#endif + +#ifdef __cplusplus +} +#endif +#endif |