Skip to content

Commit

Permalink
Merge pull request #158 from p-x9/fix/c-header-for-specific-os
Browse files Browse the repository at this point in the history
Fixed some issues with C header includes
  • Loading branch information
p-x9 authored Dec 20, 2024
2 parents c1b44e7 + b0d02f5 commit 4ca5ffc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sources/MachOKitC/include/backports.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#ifndef backports_h
#define backports_h

#ifndef __linux__

#include <mach-o/loader.h>
#include <stdint.h>

#ifndef MH_IMPLICIT_PAGEZERO
Expand Down Expand Up @@ -41,5 +44,6 @@
#define PLATFORM_VISIONOSSIMULATOR 12
#endif

#endif /* __linux__ */

#endif /* backports_h */
2 changes: 1 addition & 1 deletion Sources/MachOKitC/include/dyld_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#ifndef __linux__

#include <__stddef_size_t.h>
#include <stddef.h>

extern const void* _dyld_get_shared_cache_range(size_t* length);

Expand Down

0 comments on commit 4ca5ffc

Please sign in to comment.