Skip to content

Commit

Permalink
fix NavServicesAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
autc04 committed Nov 11, 2019
1 parent 727b89f commit 8409745
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cincludes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def declare_function(fun, variant_index:nil)
when "ppc"
@out << "#if TARGET_CPU_68K\n"
optionalInline = true
when "m68k"
@out << "#if !TARGET_CPU_68K\n"
optionalInline = true
end
declare_inline(name, (fun["return"] or "void"), args, fun["inline"])
end
Expand Down
6 changes: 6 additions & 0 deletions defs/Navigation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,15 @@
- name: filterMode
type: NavFilterModes

- function:
name: NavServicesCanRun
return: Boolean

- function:
name: NavServicesAvailable
return: Boolean
inline: (&NavLibraryVersion && NavServicesCanRun())
noinline: m68k

- function:
name: NavLibraryVersion
Expand Down

0 comments on commit 8409745

Please sign in to comment.