LADSoft / OrangeC

OrangeC Compiler And Tool Chain
http://ladsoft.tripod.com/orange_c_compiler.html
Other
291 stars 39 forks source link

windows.h is broken in last release - no win32 subfolder #1043

Open GitMensch opened 1 month ago

GitMensch commented 1 month ago
#ifndef RC_INVOKED
#    include <limits.h>
#    include <stdarg.h>

/* microsoft includes these in WINNT.H and we have to too for compatibility */
#    include <ctype.h>
#    include <string.h>
#    include <stdlib.h>

/* Base definitions */
#    include <win32/base.h>

/* WIN32 messages */
#    include <win32/messages.h>

#endif /* RC_INVOKED */

/* WIN32 definitions */
#include <win32/defines.h>

#ifndef RC_INVOKED
/* WIN32 structures */
#    include <win32/structur.h>

/* WIN32 functions */
#    include <win32/function.h>

/* WIN32 error codes */
#    include <win32/errors.h>

/* How do we get the VM page size on NT? */
#    ifndef vm_page_size
#        define vm_page_size 4096
#    endif

but there is no subfolder win32 at all, which breaks most of the "win" headers.

Is there an older version that would be reasonable to copy the include/win32 folder from?

LADSoft commented 1 month ago

should be in orangec\include\c\win32*.*... looks though like the zip files may not have it right now. I'll fix that in a bit... for now you can copy the contents of the c:\orangec\src\clibs\platform\win32\inc directory into \orangec\include\c\win32.... or easier you can go to the command line into c:\orangec\src\clibs and use 'omake copyfiles' to populate it. not sure whether that will work if you moved the repo to a subdirectory though.... another possibility is if you run the windows installer that should populate it.

LADSoft commented 1 month ago

i wasn't able to duplicate this, can you give me an idea of how you installed it?

GitMensch commented 1 month ago

Extracted the zip from last release.