summary refs log tree commit diff stats
path: root/src/common/portable.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-08-18 23:20:18 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-08-18 23:20:18 +0200
commitca904e43347e2004514c813aef975118fae1fdfc (patch)
tree69855968a437acbb168768a1c8bc30c840bbf023 /src/common/portable.c
parentbb33a3c4c48f0acde43a5c371eb66c6b0636f9ee (diff)
portable mode enabled in runtime
Diffstat (limited to 'src/common/portable.c')
-rw-r--r--src/common/portable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/portable.c b/src/common/portable.c
new file mode 100644
index 00000000..dcc0fba1
--- /dev/null
+++ b/src/common/portable.c
@@ -0,0 +1,14 @@
+#include  <io.h>
+
+int
+portable_mode ()
+{
+	if ((_access( "portable-mode", 0 )) != -1)
+	{
+		return 1;
+	}
+	else
+	{
+		return 0;
+	}
+}