зеркало из https://github.com/mozilla/pjs.git
Making work on Smartphones. WINCE ONLY
This commit is contained in:
Родитель
f0afd97514
Коммит
621fa6dc20
|
@ -37,14 +37,14 @@
|
|||
#ifndef _MOZCE_DEFS
|
||||
#define _MOZCE_DEFS
|
||||
|
||||
#define MOZCE_SHUNT_API
|
||||
|
||||
#ifndef MOZCE_STATIC_BUILD
|
||||
#ifdef MOZCE_SHUNT_EXPORTS
|
||||
#define MOZCE_SHUNT_API __declspec(dllexport)
|
||||
#else
|
||||
#define MOZCE_SHUNT_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define MOZCE_SHUNT_API
|
||||
#endif
|
||||
|
||||
//#define USE_NC_LOGGING 1
|
||||
|
|
|
@ -393,6 +393,11 @@
|
|||
#endif
|
||||
#define CreateDIBitmap mozce_CreateDIBitmap
|
||||
|
||||
#ifdef CommDlgExtendedError
|
||||
#undef CommDlgExtendedError
|
||||
#endif
|
||||
#define CommDlgExtendedError mozce_CommDlgExtendedError
|
||||
|
||||
#ifdef EnumChildWindows
|
||||
#undef EnumChildWindows
|
||||
#endif
|
||||
|
@ -1324,6 +1329,7 @@ extern "C" {
|
|||
MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator);
|
||||
MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage);
|
||||
MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage);
|
||||
MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError(void);
|
||||
MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage);
|
||||
MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode);
|
||||
MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode);
|
||||
|
|
|
@ -52,6 +52,19 @@ extern "C" {
|
|||
|
||||
#define wcharcount(array) (sizeof(array) / sizeof(TCHAR))
|
||||
|
||||
|
||||
MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError()
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_CommDlgExtendedError called\n");
|
||||
#endif
|
||||
|
||||
return -1 /*CDERR_DIALOGFAILURE*/;
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
@ -857,7 +870,7 @@ MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize)
|
||||
MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCSTR inLongPath, LPSTR outShortPath, DWORD inBufferSize)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
|
@ -865,9 +878,9 @@ MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShort
|
|||
mozce_printf("-- mozce_GetShortPathName called\n");
|
||||
#endif
|
||||
|
||||
DWORD retval = 0;
|
||||
DWORD retval = strlen(inLongPath);
|
||||
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
strncpy(outShortPath, inLongPath, inBufferSize);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
@ -1109,6 +1122,8 @@ struct lconv s_locale_conv =
|
|||
1, /* n_sign_posn */
|
||||
};
|
||||
|
||||
|
||||
|
||||
MOZCE_SHUNT_API struct lconv * mozce_localeconv(void)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
|
Загрузка…
Ссылка в новой задаче