Port 2V0 UI Python bindings and app module link surface
This commit is contained in:
@@ -10,8 +10,15 @@
|
||||
#include <cstring>
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#include <alloca.h>
|
||||
#include <strings.h>
|
||||
|
||||
// The x87 precision-control call has no equivalent on ARM; the script never needs x87 state there.
|
||||
#define _PC_24 0
|
||||
#define _MCW_PC 0
|
||||
inline unsigned _controlfp(unsigned, unsigned) { return 0; }
|
||||
#define _alloca alloca
|
||||
|
||||
#include "Win32MinMax.h"
|
||||
|
||||
// mmsystem.h
|
||||
@@ -54,6 +61,12 @@ int _snprintf(char* buf, size_t count, const char* fmt, ...)
|
||||
BOOL CreateDirectory(LPCSTR path, void* security_attributes);
|
||||
BOOL DeleteFile(LPCSTR path);
|
||||
int _access(const char* path, int mode);
|
||||
struct WIN32_FIND_DATA { char cFileName[MAX_PATH]; };
|
||||
#define INVALID_HANDLE_VALUE (reinterpret_cast<HANDLE>(static_cast<intptr_t>(-1)))
|
||||
HANDLE FindFirstFile(const char* pattern, WIN32_FIND_DATA* data);
|
||||
BOOL FindNextFile(HANDLE handle, WIN32_FIND_DATA* data);
|
||||
BOOL FindClose(HANDLE handle);
|
||||
void Sleep(DWORD milliseconds);
|
||||
|
||||
// winmm `timeGetTime`: milliseconds since system start, wrapping at 2^32.
|
||||
DWORD timeGetTime();
|
||||
|
||||
Reference in New Issue
Block a user