1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fixing warnings:

- no previous declaration for ‘_isatty’
- implicit declaration of function ‘_isatty’

modified:
  storage/connect/fmdlex.c
  storage/connect/osutil.c
This commit is contained in:
Alexander Barkov
2013-07-08 10:46:15 +04:00
parent e2461d47cb
commit 269fd01bc1
2 changed files with 3 additions and 6 deletions

View File

@@ -24,6 +24,9 @@
#define __STDC__ 1
#endif
#include <stdio.h>
#ifndef defined(WIN32)
#include <unistd.h>
#endif
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -392,7 +395,6 @@ char *yytext;
#include <string.h>
#include "preparse.h"
#define isatty _isatty
#define fileno _fileno
#undef YY_DECL
#define YY_DECL int yylex YY_PROTO((PDTP ppp))

View File

@@ -202,11 +202,6 @@ BOOL MessageBeep(uint i)
return TRUE;
} /* end of MessageBeep */
int _isatty(int fileNo)
{
return isatty(fileNo);
} /* end of _isatty */
#if 0
/* This function is ridiculous and should be revisited */
DWORD FormatMessage(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId,