/* ------------------------------------------------------------------
 * GEM - Graphics Environment for Multimedia
 *
 * SPDX-FileCopyrightText: © 1997, Mark Danks and the GEM contributors
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * ------------------------------------------------------------------
 */

/* configuration-file */
#ifndef HAVE_BASE_GEMCONFIG_H_
#define HAVE_BASE_GEMCONFIG_H_

#ifdef _MSC_VER
# ifndef _WIN32
#  define _WIN32
# endif
#endif

#ifdef _WIN32
# ifndef NT
#  define NT
# endif
# ifndef MSW
#  define MSW
# endif
# ifndef WIN32_LEAN_AND_MEAN
#  define WIN32_LEAN_AND_MEAN
# endif
#endif

#ifdef HAVE_CONFIG_H

# include "config.h"

/* stupid hack to avoid duplicate inclusion of config.h e.g. in avifile.h */
# undef HAVE_CONFIG_H

#else /* includes system-specific files */

# ifdef __linux__
#  include "Gem/configLinux.h"
# elif defined __APPLE__
#  include "Gem/configDarwin.h"
# elif defined _WIN32
#  include "Gem/configNT.h"
# endif
#endif

#ifdef HAVE_LIBFTGL
# if defined HAVE_FTGL_FTGL_H
#  define FTGL
# elif defined HAVE_FTFONT_H
#  define FTGL
# endif
#endif

#ifdef HAVE_PTHREAD
# define HAVE_PTHREADS
#endif

#endif /* HAVE_BASE_GEMCONFIG_H_ */
