Skip to content

Commit

Permalink
Add missing #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 17, 2024
1 parent d31f5eb commit 87af814
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tccpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,9 +1348,11 @@ static int parse_include(TCCState *s1, int do_next, int test)
{
int c, i;
char name[1024], buf[1024], *p;
#ifdef TCC_TARGET_MACHO
#ifdef TCC_TARGET_MACHO
#ifdef TCC_IS_NATIVE
char *darwin_framework_search_path;
#endif
#endif
#endif
CachedInclude *e;

c = skip_spaces();
Expand Down Expand Up @@ -1404,6 +1406,7 @@ static int parse_include(TCCState *s1, int do_next, int test)
else if (k < s1->nb_sysinclude_paths)
p = s1->sysinclude_paths[k];
#ifdef TCC_TARGET_MACHO
#ifdef TCC_IS_NATIVE
else if (s1->nb_framework_names > 0 && (darwin_framework_search_path = tcc_search_darwin_framework(s1, name))) {
pstrcpy(buf, sizeof buf, darwin_framework_search_path);
pstrcat(buf, sizeof buf, tcc_basename(name));
Expand All @@ -1413,6 +1416,7 @@ static int parse_include(TCCState *s1, int do_next, int test)
tcc_error("include file '%s' not found", name);
}
}
#endif
#endif
else if (test)
return 0;
Expand Down

0 comments on commit 87af814

Please sign in to comment.