From 2951ae5b61b16c1f4e03ceee88d6db7e1e45362b Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Wed, 26 May 2021 04:17:09 +0200 Subject: Prefix symbols to prevent potential conflicts when linking to the library --- FileSystem.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'FileSystem.c') diff --git a/FileSystem.c b/FileSystem.c index b0eda22..3968562 100755 --- a/FileSystem.c +++ b/FileSystem.c @@ -4,7 +4,7 @@ #include -FILE *FileOpen(const char *path, const bool write) +FILE *Ham_FileOpen(const char *path, const bool write) { if (!path) { @@ -14,7 +14,7 @@ FILE *FileOpen(const char *path, const bool write) return fopen(path, write ? "wb" : "rb"); } -bool FileClose(FILE *file) +bool Ham_FileClose(FILE *file) { if (!file) { @@ -24,7 +24,7 @@ bool FileClose(FILE *file) return fclose(file) == 0; } -bool FileRead(FILE *file, void *dst, const size_t size) +bool Ham_FileRead(FILE *file, void *dst, const size_t size) { if (!file || !dst || size == 0) { @@ -34,7 +34,7 @@ bool FileRead(FILE *file, void *dst, const size_t size) return fread(dst, 1, size, file) == size; } -bool FileWrite(FILE *file, const void *src, const size_t size) +bool Ham_FileWrite(FILE *file, const void *src, const size_t size) { if (!file || !src || size == 0) { @@ -44,7 +44,7 @@ bool FileWrite(FILE *file, const void *src, const size_t size) return fwrite(src, 1, size, file) == size; } -bool FileSeek(FILE *file, const size_t offset) +bool Ham_FileSeek(FILE *file, const size_t offset) { if (!file) { @@ -54,7 +54,7 @@ bool FileSeek(FILE *file, const size_t offset) return fseek(file, (long)offset, SEEK_SET) == 0; } -size_t FileSize(const char *path) +size_t Ham_FileSize(const char *path) { if (!path) { @@ -70,7 +70,7 @@ size_t FileSize(const char *path) return st.st_size; } -const char *PathRelativeToBase(const char *full, const char *base) +const char *Ham_PathRelativeToBase(const char *full, const char *base) { if (!full || !base) { -- cgit v1.2.3