pal_android.h 683 B

1234567891011121314151617181920212223242526272829
  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_STAT_TIM 1
  10. #include <sys/sendfile.h>
  11. #define IL2CPP_HAVE_SENDFILE_4 1
  12. #define IL2CPP_HAVE_SYS_UN 1
  13. // On Android, we are not allowed to modify permissions, but the copy should still succeed;
  14. // see https://github.com/mono/mono/issues/17133 for details.
  15. #define IL2CPP_CANNOT_MODIFY_FILE_PERMISSIONS 1
  16. #define stat_ stat
  17. #define fstat_ fstat
  18. #define lstat_ lstat
  19. #include <dirent.h>
  20. #endif // IL2CPP_TARGET_ANDROID