mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
Commit changes pulled from ob-10.0
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
/* Include relevant sections of the System header files. */
|
||||
/***********************************************************************/
|
||||
#include "my_global.h"
|
||||
#if defined(WIN32)
|
||||
#if defined(__WIN__)
|
||||
#if defined(__BORLANDC__)
|
||||
#define __MFC_COMPAT__ // To define min/max as macro
|
||||
#endif // __BORLANDC__
|
||||
//#include <windows.h>
|
||||
#else // !WIN32
|
||||
#else // !__WIN__
|
||||
#if defined(UNIX)
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <io.h>
|
||||
#endif // !UNIX
|
||||
#include <fcntl.h>
|
||||
#endif // !WIN32
|
||||
#endif // !__WIN__
|
||||
|
||||
/***********************************************************************/
|
||||
/* Include application header files: */
|
||||
@@ -36,9 +36,9 @@
|
||||
#include "global.h"
|
||||
#include "plgdbsem.h"
|
||||
#include "reldef.h"
|
||||
#if !defined(WIN32)
|
||||
#if !defined(__WIN__)
|
||||
#include "osutil.h"
|
||||
#endif // !WIN32
|
||||
#endif // !__WIN__
|
||||
#include "filamtxt.h"
|
||||
#include "tabdos.h"
|
||||
#include "tabsys.h"
|
||||
@@ -48,10 +48,10 @@
|
||||
#define CSZ 36 // Column section name length
|
||||
#define CDZ 256 // Column definition length
|
||||
|
||||
#if !defined(WIN32)
|
||||
#if !defined(__WIN__)
|
||||
#define GetPrivateProfileSectionNames(S,L,I) \
|
||||
GetPrivateProfileString(NULL,NULL,"",S,L,I)
|
||||
#endif // !WIN32
|
||||
#endif // !__WIN__
|
||||
|
||||
/* -------------- Implementation of the INI classes ------------------ */
|
||||
|
||||
@@ -123,7 +123,7 @@ bool INIDEF::DeleteTableFile(PGLOBAL g)
|
||||
// Delete the INI table file if not protected
|
||||
if (!IsReadOnly()) {
|
||||
PlugSetPath(filename, Fn, GetPath());
|
||||
#if defined(WIN32)
|
||||
#if defined(__WIN__)
|
||||
rc = !DeleteFile(filename);
|
||||
#else // UNIX
|
||||
rc = remove(filename);
|
||||
@@ -345,9 +345,9 @@ int TDBINI::DeleteDB(PGLOBAL g, int irc)
|
||||
/***********************************************************************/
|
||||
void TDBINI::CloseDB(PGLOBAL)
|
||||
{
|
||||
#if !defined(WIN32)
|
||||
#if !defined(__WIN__)
|
||||
PROFILE_Close(Ifile);
|
||||
#endif // !WIN32
|
||||
#endif // !__WIN__
|
||||
} // end of CloseDB
|
||||
|
||||
// ------------------------ INICOL functions ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user