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:
@@ -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))
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user