NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
430B

  1. #ifndef NESE_COMPAT_H_
  2. #define NESE_COMPAT_H_
  3. #if !defined (__unix__) && !(defined (__APPLE__) && defined (__MACH__))
  4. #include <stdio.h>
  5. char* strndup(const char *str, size_t size);
  6. ssize_t getline(char **restrict lineptr, size_t *restrict n,
  7. FILE *restrict stream);
  8. #endif
  9. int mkdir_impl(const char*);
  10. static inline int mkdir(const char* dir) {
  11. return mkdir_impl(dir);
  12. }
  13. #endif // NESE_COMPAT_H_