mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-01-07 23:18:52 +01:00
Added submodule contents into tree
This commit is contained in:
parent
01a752555c
commit
9b991208cd
4934 changed files with 1657477 additions and 5 deletions
31
externals/mbedtls/programs/wince_main.c
vendored
Normal file
31
externals/mbedtls/programs/wince_main.c
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Windows CE console application entry point
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
extern int main(int, const char **);
|
||||
|
||||
int _tmain(int argc, _TCHAR *targv[])
|
||||
{
|
||||
char **argv;
|
||||
int i;
|
||||
|
||||
argv = (char **) calloc(argc, sizeof(char *));
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
size_t len;
|
||||
len = _tcslen(targv[i]) + 1;
|
||||
argv[i] = (char *) calloc(len, sizeof(char));
|
||||
wcstombs(argv[i], targv[i], len);
|
||||
}
|
||||
|
||||
return main(argc, argv);
|
||||
}
|
||||
|
||||
#endif /* defined(_WIN32_WCE) */
|
||||
Loading…
Add table
Add a link
Reference in a new issue