pal_android.h 723 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #if IL2CPP_TARGET_ANDROID
  4. #define IL2CPP_USES_POSIX_CLASS_LIBRARY_PAL 1
  5. #define IL2CPP_HAVE_STAT_FLAGS 1
  6. #define IL2CPP_HAVE_STAT_FLAGS 1
  7. #define IL2CPP_HAVE_LCHFLAGS 1
  8. #define IL2CPP_HAVE_FUTIMENS 1
  9. #define IL2CPP_HAVE_FIXED_SIZE_DIRENT 1
  10. #define IL2CPP_HAVE_STAT_TIM 1
  11. #include <sys/sendfile.h>
  12. #define IL2CPP_HAVE_SENDFILE_4 1
  13. #define IL2CPP_HAVE_SYS_UN 1
  14. // On Android, we are not allowed to modify permissions, but the copy should still succeed;
  15. // see https://github.com/mono/mono/issues/17133 for details.
  16. #define IL2CPP_CANNOT_MODIFY_FILE_PERMISSIONS 1
  17. #define stat_ stat
  18. #define fstat_ fstat
  19. #define lstat_ lstat
  20. #include <dirent.h>
  21. #endif // IL2CPP_TARGET_ANDROID