|
- #ifndef NESE_COMPAT_H_
- #define NESE_COMPAT_H_
-
- #if !defined (__unix__) && !(defined (__APPLE__) && defined (__MACH__))
-
-
- #include <stdio.h>
-
-
- char* strndup(const char *str, size_t size);
-
- ssize_t getline(char **restrict lineptr, size_t *restrict n,
- FILE *restrict stream);
-
-
- #endif
-
-
- int mkdir_impl(const char*);
-
- static inline int mkdir(const char* dir) {
- return mkdir_impl(dir);
- }
-
-
- #endif // NESE_COMPAT_H_
|