From 243795e06813561c2ee1c5029f8fe5b1717fdd8f Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Fri, 12 Jul 2013 19:11:10 +0100
Subject: [PATCH] [Add] Give errors on unsupported OS code.

---
 src/lfile.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lfile.c b/src/lfile.c
index 6ad6eda..2c35bdc 100644
--- a/src/lfile.c
+++ b/src/lfile.c
@@ -22,6 +22,8 @@ char* lfile_basePath(void) {
   if(lephisto_base[0] == '\0') {
 #ifdef LINUX
     home = getenv("HOME");
+#else
+#error "Needs implentation."
 #endif
     snprintf(lephisto_base, PATH_MAX, "%s/.lephisto/", home);
   }
@@ -49,6 +51,8 @@ int lfile_dirMakeExist(char* path) {
       WARN("Dir '%s' does not exist and unable to create", path);
       return -1;
     }
+#else
+#error "Needs implentation."
 #endif
 
   return 0;
@@ -75,6 +79,8 @@ int lfile_fileExists(char* path, ...) {
 
   if(stat(file, &buf)==0) /* Stat worked, file must exist. */
     return 1;
+#else
+#error "Needs implementation."
 #endif
   return 0;
 }
@@ -117,6 +123,8 @@ char** lfile_readDir(int* lfiles, char* path) {
   }
 
   closedir(d);
+#else
+#error "Needs implementation."
 #endif
 
   /* What if we find nothing? */