summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/portable.c14
-rw-r--r--src/common/portable.h1
2 files changed, 15 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;
+	}
+}
diff --git a/src/common/portable.h b/src/common/portable.h
new file mode 100644
index 00000000..bd40b24d
--- /dev/null
+++ b/src/common/portable.h
@@ -0,0 +1 @@
+int portable_mode ();