diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 00:54:38 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 00:54:38 +0200 |
| commit | 20f8542d2730654ba7140dc59240c8d477476e77 (patch) | |
| tree | 2c48120a8882e70142fea964906e50f95d08d171 /src/platform/platform.h | |
| parent | 830ee22b85f1e91c547354435af2b6a79578f7ce (diff) | |
| download | cc4group-20f8542d2730654ba7140dc59240c8d477476e77.tar.gz cc4group-20f8542d2730654ba7140dc59240c8d477476e77.zip | |
Add cc4group.getName and cc4group.getFullName
Diffstat (limited to 'src/platform/platform.h')
| -rw-r--r-- | src/platform/platform.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/platform/platform.h b/src/platform/platform.h index 55ed242..04b20b0 100644 --- a/src/platform/platform.h +++ b/src/platform/platform.h @@ -24,11 +24,7 @@ #define cc4group_mkdir(path, mode) mkdir((path)) #define SET_BINARY(fd) setmode(fd, O_BINARY) #else - #ifndef _XOPEN_SOURCE - #define _XOPEN_SOURCE 700 - #endif #include <sys/mman.h> - #include <stdlib.h> #define cc4group_mkdir(path, mode) mkdir((path), (mode)) #define O_BINARY 0 @@ -37,4 +33,5 @@ void *cc4group_mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); int cc4group_munmap(void *addr, size_t length); -char* cc4group_absolutePath(const char* path);
\ No newline at end of file +char* cc4group_absolutePath(const char* path); +char* cc4group_basename(const char* path);
\ No newline at end of file |
