Support for PC platform (#12)
* improvements for cross-platform compiling * moved tactility-core to libs/ * splitup improvements * remove git/gitmodules from freertos * better platformbetter platform checks * added build scripts * delete mbedtls * re-add mbedtls * fixes and improvements * added pc build * simplify build scripts * revert build scrpit * updated builds * fix for pc * fix for pc * fix for build
This commit is contained in:
committed by
GitHub
parent
c830c66063
commit
a94baf0d00
@@ -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) */
|
||||
Reference in New Issue
Block a user