aboutsummaryrefslogtreecommitdiff
path: root/backends/file/posix
diff options
context:
space:
mode:
Diffstat (limited to 'backends/file/posix')
-rw-r--r--backends/file/posix/posix-file.cpp4
-rw-r--r--backends/file/posix/posix-file.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/file/posix/posix-file.cpp b/backends/file/posix/posix-file.cpp
index 84c82fa5c5..7419161ccd 100644
--- a/backends/file/posix/posix-file.cpp
+++ b/backends/file/posix/posix-file.cpp
@@ -1,5 +1,7 @@
#include "backends/file/posix/posix-file.h"
+namespace Common {
+
POSIXFile::POSIXFile() : BaseFile() {
//
}
@@ -39,3 +41,5 @@ long POSIXFile::_ftell(FILE *stream) const {
int POSIXFile::_fwrite(const void * ptr, size_t obj_size, size_t count, FILE * stream) {
return fwrite(ptr, obj_size, count, stream);
}
+
+} // End of namespace Common
diff --git a/backends/file/posix/posix-file.h b/backends/file/posix/posix-file.h
index 00ce307df5..e74338b8d8 100644
--- a/backends/file/posix/posix-file.h
+++ b/backends/file/posix/posix-file.h
@@ -27,6 +27,8 @@
#include "backends/file/base-file.cpp"
+namespace Common {
+
/**
* Implements several POSIX specific file related functions used by the Common::File wrapper.
*
@@ -47,4 +49,6 @@ protected:
int _fwrite(const void * ptr, size_t obj_size, size_t count, FILE * stream);
};
+} // End of namespace Common
+
#endif //BACKENDS_POSIX_FILE_H