summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 403b0ea..8ceb7d6 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -567,3 +567,12 @@ const char *Portable::strnstr(const char *haystack, const char *needle, size_t h
}
return 0;
}
+
+const char *Portable::devNull()
+{
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ return "NUL";
+#else
+ return "/dev/null";
+#endif
+}