Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Dec 23, 2023
1 parent aed4962 commit 97afd3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,8 @@ HL_PRIM void *hl_alloc_executable_memory( int size ) {
#elif defined(HL_WIN)
void *ptr = VirtualAlloc(NULL,size,MEM_RESERVE|MEM_COMMIT,PAGE_EXECUTE_READWRITE);
return ptr;
#elif defined(HL_OS)
return malloc(size);
#elif defined(HL_CONSOLE)
return NULL;
#else
Expand Down
2 changes: 1 addition & 1 deletion src/hl.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# define HL_XBS
#endif

#if defined(HL_PS) || defined(HL_NX) || defined(HL_XBO) || defined(HL_XBS)
#if defined(HL_PS) || defined(HL_NX) || defined(HL_XBO) || defined(HL_XBS) || defined(HL_OS)
# define HL_CONSOLE
#endif

Expand Down

0 comments on commit 97afd3c

Please sign in to comment.