<commit_before>#include "framework/framework.h"
#include "framework/apocresources/cursor.h"
#include "framework/event.h"
#include "framework/renderer.h"
#include "framework/renderer_interface.h"
#include "framework/sound.h"
#include "framework/sound_interface.h"
#include "framework/trace.h"
#include "library/sp.h"
#include <SDL.h>
#include <iostream>
#include <string>

// SDL_syswm includes windows.h on windows, which does all kinds of polluting
// defines/namespace stuff, so try to avoid that
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <SDL_syswm.h>
// Use physfs to get prefs dir
#include <physfs.h>

// Boost locale for setting the system locale
// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/filesystem.hpp>
#include <boost/locale.hpp>

#ifdef OPENAPOC_GLES

#include "framework/render/gles20/EGLContext.h"

#endif /*OPENAPOC_GLES*/

using namespace OpenApoc;

namespace
{

#ifndef DATA_DIRECTORY
#define DATA_DIRECTORY "./data"
#endif

#ifndef RENDERERS
#ifdef _WIN32
#pragma message("WARNING: Using default renderer list")<commit_msg>Fix X11 headers #define 'None' breaking some enums<commit_after>#include "framework/framework.h"
#include "framework/apocresources/cursor.h"
#include "framework/event.h"
#include "framework/renderer.h"
#include "framework/renderer_interface.h"
#include "framework/sound.h"
#include "framework/sound_interface.h"
#include "framework/trace.h"
#include "library/sp.h"
#include <SDL.h>
#include <iostream>
#include <string>

// SDL_syswm includes windows.h on windows, which does all kinds of polluting
// defines/namespace stuff, so try to avoid that
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <SDL_syswm.h>

// Windows isn't the only thing that pollutes stuff with #defines - X gets in on it too with 'None'
#undef None

// Use physfs to get prefs dir
#include <physfs.h>

// Boost locale for setting the system locale
// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/filesystem.hpp>
#include <boost/locale.hpp>

#ifdef OPENAPOC_GLES

#include "framework/render/gles20/EGLContext.h"

#endif /*OPENAPOC_GLES*/

using namespace OpenApoc;

namespace
{

#ifndef DATA_DIRECTORY
#define DATA_DIRECTORY "./data"
#endif

#ifndef RENDERERS
#ifdef _WIN32
#pragma message("WARNING: Using default renderer list")
{'fraction_non_alphanumeric': 0.10499410145497444, 'fraction_numerical': 0.005505308690523005, 'mean_word_length': 5.312655086848635, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5735499', 'n_tokens_mistral': 836, 'n_tokens_neox': 823, 'n_words': 264}