aboutsummaryrefslogtreecommitdiff
path: root/butl/process.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-08 00:49:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-10 14:53:04 +0300
commitaa0370b08ea8a1ad679a746c7be21a874f264fb6 (patch)
tree653f6b1d8ed888691f5af5a1e57516050d71d3cb /butl/process.cxx
parentde07f993a54f7443db685798ae9225bbd49f0231 (diff)
Add ucase(), lcase(), casecmp(), alpha(), digit(), alnum()
Diffstat (limited to 'butl/process.cxx')
-rw-r--r--butl/process.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/butl/process.cxx b/butl/process.cxx
index 6b41165..75e8718 100644
--- a/butl/process.cxx
+++ b/butl/process.cxx
@@ -12,7 +12,6 @@
# include <io.h> // _open_osfhandle(), _get_osfhandle(), _close()
# include <fcntl.h> // _O_TEXT
-# include <string.h> // _stricmp() @@ CASE
# include <stdlib.h> // _MAX_PATH, getenv()
# include <sys/types.h> // stat
# include <sys/stat.h> // stat(), S_IS*
@@ -25,6 +24,7 @@
#include <cassert>
+#include <butl/utility> // casecmp()
#include <butl/fdstream> // fdnull(), fdclose()
using namespace std;
@@ -288,7 +288,7 @@ namespace butl
// support those, it will have to be handled differently.
//
const char* e (r.extension ());
- if (e == nullptr || _stricmp (e, "exe") != 0) // @@ CASE
+ if (e == nullptr || casecmp (e, "exe") != 0)
r += ".exe";
// Only check that the file exists since the executable mode is set