bugTiny C Compiler - Bugs: bug #65287, Compile error when including...

 
 

bug #65287: Compile error when including winnt.h

Submitter:  None
Submitted:  Sat 10 Feb 2024 01:08:35 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 10 Feb 2024 01:08:35 PM UTC, original submission:  

I'm compiling a third party cross-platform filesystem utils package from Windows, and tcc fails on a syntax error in the included winnt library. I've checked what's there but I can't really find what's wrong to fix it. Any pointers?

$ tcc\tcc -v
tcc version 0.9.27 (x86_64 Windows)

$ tcc\tcc  test\test_browser.c
In file included from test/test_browser.c:5:
test/ice_fs.h:753: warning: _WIN32_WINNT redefined
In file included from test/test_browser.c:5:
In file included from test/ice_fs.h:773:
In file included from c:/git/lbasic/tcc/include/winapi/windef.h:122:
c:/git/lbasic/tcc/include/winapi/winnt.h:1972: error: ';' expected (got "EXCEPTION_ROUTINE")


This is what's in line 1972 in winnt.h (which is a syntax that I don't recognize nor know how to fix):

    typedef EXCEPTION_DISPOSITION NTAPI EXCEPTION_ROUTINE (struct _EXCEPTION_RECORD *ExceptionRecord, PVOID EstablisherFrame, struct _CONTEXT *ContextRecord, PVOID DispatcherContext);



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code