Commit e2461d47 authored by Alexander Barkov's avatar Alexander Barkov

Fixing the "no previous declaration for ‘_strerror'" warning.

modified:
  storage/connect/filamvct.cpp
  storage/connect/osutil.c
  storage/connect/tabvct.cpp
parent 66c1665e
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
//#define strerror(X) _strerror(X)
#define NO_ERROR 0 #define NO_ERROR 0
#else // !UNIX #else // !UNIX
#include <io.h> #include <io.h>
......
...@@ -202,14 +202,6 @@ BOOL MessageBeep(uint i) ...@@ -202,14 +202,6 @@ BOOL MessageBeep(uint i)
return TRUE; return TRUE;
} /* end of MessageBeep */ } /* end of MessageBeep */
LPSTR _strerror(int errn)
{
static char buff[256];
sprintf(buff,"error: %d", errn);
return buff;
} /* end of _strerror */
int _isatty(int fileNo) int _isatty(int fileNo)
{ {
return isatty(fileNo); return isatty(fileNo);
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
//#define strerror(X) _strerror(X)
#define NO_ERROR 0 #define NO_ERROR 0
#else #else
#include <io.h> #include <io.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment