Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed May 2, 2024
1 parent 6d02479 commit c41ad39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tic.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#if !defined(TIC_RUNTIME_STATIC)
#include <dlfcn.h>
#endif

static void onTrace(void* data, const char* text, u8 color)
{
Expand Down Expand Up @@ -70,6 +73,8 @@ TIC80_API void tic80_load(tic80* tic, void* cart, s32 size)
{
tic_api_reset(mem);
}

#if !defined(TIC_RUNTIME_STATIC)
else
{
const char* tag = tic_tool_metatag(mem->cart.code.data, "script", NULL);
Expand All @@ -93,6 +98,7 @@ TIC80_API void tic80_load(tic80* tic, void* cart, s32 size)
}
}
}
#endif
}

TIC80_API void tic80_tick(tic80* tic, tic80_input input, CounterCallback counter, FreqCallback freq)
Expand Down

0 comments on commit c41ad39

Please sign in to comment.