mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Patch for MinGW 3.0
This commit is contained in:
parent
aa44fca9c8
commit
fb51d2c17d
@ -50,6 +50,11 @@
|
||||
#define SCRATCH "fb_query_"
|
||||
#endif
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
extern TEXT *DDL_prompt;
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
//
|
||||
// All Rights Reserved.
|
||||
// Contributor(s): ______________________________________.
|
||||
// $Id: gpre.cpp,v 1.26 2003-07-06 07:04:01 dimitr Exp $
|
||||
// $Id: gpre.cpp,v 1.27 2003-07-14 16:53:39 brodsom Exp $
|
||||
// Revision 1.2 2000/11/16 15:54:29 fsg
|
||||
// Added new switch -verbose to gpre that will dump
|
||||
// parsed lines to stderr
|
||||
@ -42,7 +42,7 @@
|
||||
//
|
||||
//____________________________________________________________
|
||||
//
|
||||
// $Id: gpre.cpp,v 1.26 2003-07-06 07:04:01 dimitr Exp $
|
||||
// $Id: gpre.cpp,v 1.27 2003-07-14 16:53:39 brodsom Exp $
|
||||
//
|
||||
|
||||
#define GPRE_MAIN
|
||||
@ -76,6 +76,10 @@ extern int lib$get_foreign();
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
@ -988,25 +992,16 @@ void CPR_exit( int stat)
|
||||
|
||||
if (trace_file_name[0])
|
||||
{
|
||||
|
||||
if (trace_file)
|
||||
|
||||
ib_fclose(trace_file);
|
||||
|
||||
unlink(trace_file_name);
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (trace_file)
|
||||
|
||||
ib_fclose(trace_file);
|
||||
|
||||
if (trace_file_name[0])
|
||||
|
||||
unlink(trace_file_name);
|
||||
|
||||
#endif
|
||||
|
||||
exit(stat);
|
||||
|
@ -113,6 +113,11 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include "gen/codes.h"
|
||||
|
||||
/* Pick up system relation ids */
|
||||
|
@ -32,6 +32,11 @@
|
||||
#include "../jrd/gds.h"
|
||||
#include "../jrd/msg_encode.h"
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
/* The MSG.GDB database is found under the /msgs component subdirectory.
|
||||
Use links or logicals to point it there, thanks! AMG */
|
||||
|
||||
|
@ -33,6 +33,11 @@
|
||||
#include "../jrd/gds.h"
|
||||
#include "../jrd/msg_encode.h"
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
/* The MSG.GDB database is found under the /msgs component subdirectory.
|
||||
Use links or logicals to point it there, thanks! AMG */
|
||||
|
||||
|
@ -47,6 +47,11 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
// needed for unlink in MinGW 3.0 rc2
|
||||
#ifdef MINGW
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
DATABASE DB = FILENAME "yachts.lnk";
|
||||
DATABASE DB1 = FILENAME "yachts.lnk";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user