Hi, if you just need definitions from handleapi.h

 

Drop only the following handleapi.h file in win32/include/winapi and it should 
work:

 

handleapi.h:

---cut---cut---cut---cut---cut---cut

/**

* This file has no copyright assigned and is placed in the Public Domain.

* This file is part of the tcc compiler.

* No warranty is given; refer to the file DISCLAIMER within this package.

*/

#ifndef _HANDLEAPI_H

#define _HANDLEAPI_H

 

#include <windows.h>

 

#define INVALID_HANDLE_VALUE  ((HANDLE)(LONG_PTR)-1)

 

WINBASEAPI BOOL WINAPI CloseHandle(HANDLE);

WINBASEAPI BOOL WINAPI DuplicateHandle(HANDLE, HANDLE, HANDLE, LPHANDLE, DWORD, 
BOOL, DWORD);

WINBASEAPI BOOL WINAPI CompareObjectHandles(HANDLE, HANDLE);

WINBASEAPI BOOL WINAPI GetHandleInformation(HANDLE, LPDWORD);

WINBASEAPI BOOL WINAPI SetHandleInformation(HANDLE, DWORD, DWORD);

 

#endif /* _HANDLEAPI_H */

---cut---cut---cut---cut---cut---cut

 

Tell us if it works.

 

C.

 

From: Tinycc-devel [mailto:[email protected]] On 
Behalf Of D Q
Sent: Tuesday, December 22, 2020 21:40
To: [email protected]
Subject: Re: [Tinycc-devel] Tinycc-devel Digest, Vol 211, Issue 19

 

Thanks. I tried copying the headers over. At first, just copying them all from 
the latest mingw64, but got an error saying tcc does implement VARARGS.  Then 
tried following the chain of dependencies and ran into this:

 

In file included from C:/godot/gdnim/.nimcache/timer_comp/stdlib_io.nim.c:10:
In file included from C:/nim/lib/nimbase.h:264:
In file included from c:/tools/tinycc/win32/include/limits.h:6:
In file included from c:/tools/tinycc/win32/include/crtdefs.h:10:
c:/tools/tinycc/win32/include/corecrt.h:40: error: ';' expected (got "size_t")

 

I'm not sure what to make of this in corecrt.h:


#ifndef _SIZE_T_DEFINED
#define _SIZE_T_DEFINED
#undef size_t
#ifdef _WIN64
__MINGW_EXTENSION typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t;
#endif /* _WIN64 */
#endif /* _SIZE_T_DEFINED */

So I guess size_t is undefined?

 


Message: 2
Date: Tue, 22 Dec 2020 06:38:00 +0100
From: "Christian Jullien" <[email protected]>
To: <[email protected]>
Subject: Re: [Tinycc-devel] handleapi.h not found
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi,



Indeed, many includes are missing until you can include handleapi.h

You can find them all in recent version of Mingw64, for example in 
mingw64-10.2.0-crt-8.0.0-with-ada.7z



You can submit a tar.gz with all missing files to this list and let maintainer 
add them in 
https://download-mirror.savannah.gnu.org/releases/tinycc/winapi-full-for-0.9.27.zip



C.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to