* Copyright 2011 kubtek <kubtek@mail.com>
*
* This file is part of StarDict.
*
* StarDict is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* StarDict is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with StarDict. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CONFIG_CUSTOM_H
#define CONFIG_CUSTOM_H
the following config.h files should be affected:
lib/config.h
dict/config.h
dict/msvc_2008/config.h
tools/config.h
*/
#include <glib.h>
#include <glib/gstdio.h>
GLIB_MICRO_VERSION version number may be incorrect, adjust it if needed.
Use stardict_stat_t in the source code to define a structure for g_stat. */
#if GLIB_CHECK_VERSION(2, 25, 0)
#if defined(G_OS_UNIX) && !defined(G_STDIO_NO_WRAP_ON_UNIX)
typedef struct stat stardict_stat_t;
#else
typedef GStatBuf stardict_stat_t;
#endif
#elif GLIB_CHECK_VERSION(2, 24, 0)
#if defined(G_OS_UNIX) && !defined(G_STDIO_NO_WRAP_ON_UNIX)
typedef struct stat stardict_stat_t;
#else
#ifdef G_OS_WIN32
#if defined (_MSC_VER) && !defined(_WIN64)
#else
#endif
typedef struct _g_stat_struct stardict_stat_t;
#else
typedef struct stat stardict_stat_t;
#endif
#endif
#elif GLIB_CHECK_VERSION(2, 20, 0)
#if defined(G_OS_UNIX) && !defined(G_STDIO_NO_WRAP_ON_UNIX)
typedef struct stat stardict_stat_t;
#else
typedef struct stat stardict_stat_t;
#endif
#else
typedef struct stat stardict_stat_t;
#endif
#endif