<commit_before>// Copyright (c) 2013-2014 Cranium Software

// ... but permission given for use in this project in accordance
// with the license of this project

#ifndef PLATFORM_H
#define PLATFORM_H

// SE: thse don't seem to work as i intend :/
#if WIN
#pragma warning( disable : 4451 )
#pragma warning( disable : 4714 )
#endif

#if !defined( WINRT )
#define WINRT ( 0 )
#endif

#if !defined( WP )
#define WP ( 0 )
#endif

#if !defined( IOS )
#define IOS ( 0 )
#endif

#if !defined ( APPLE_WATCH )
#define APPLE_WATCH ( 0 )
#endif

#if !WINRT && !WP && ( defined( _WIN32 ) || defined( WIN32 ) ) && !defined( WIN )
#define WIN ( 1 )
#elif !defined( WIN )
#define WIN ( 0 )
#endif

#if ( ( defined( __ANDROID__ ) || defined( __ANDROID_API__ ) ) && !defined( ANDROID ) )
#define ANDROID ( 1 )
#elif !defined( ANDROID )
#define ANDROID ( 0 )
#endif

#if ( ( defined( __linux__ ) ) && !defined( LINUX ) )
#define LINUX ( 1 )
#elif !defined( LINUX )
#define LINUX ( 0 )
#endif

#if ( ( defined( __APPLE__ ) && defined( __MACH__ ) ) && !defined( OSX ) && !defined( APPLE_WATCH ) )
#define OSX ( 1 )
#elif !defined( OSX )
#define OSX ( 0 )
#endif

// SE - TODO: really?
#if !( defined( WP ) )
#if defined( WINAPI_FAMILY ) && ( WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP )
#define WP ( 1 )
#else
#define WP ( 0 )
#endif
#endif

#if WIN

static const char* const kszPlatformName = "Windows Desktop 32-bit";

#elif WINRT

static const char* const kszPlatformName = "Windows 8 Metro";

#elif IOS
<commit_msg>get rid of some of the dumber compiler warnings that fall out with /Wall in VS 2015<commit_after>// Copyright (c) 2013-2014, 2016 Cranium Software

// ... but permission given for use in this project in accordance
// with the license of this project

#ifndef PLATFORM_H
#define PLATFORM_H

#if !defined( WINRT )
#define WINRT ( 0 )
#endif

#if !defined( WP )
#define WP ( 0 )
#endif

#if !defined( IOS )
#define IOS ( 0 )
#endif

#if !defined ( APPLE_WATCH )
#define APPLE_WATCH ( 0 )
#endif

#if !WINRT && !WP && ( defined( _WIN32 ) || defined( WIN32 ) ) && !defined( WIN )
#define WIN ( 1 )
#elif !defined( WIN )
#define WIN ( 0 )
#endif

#if ( ( defined( __ANDROID__ ) || defined( __ANDROID_API__ ) ) && !defined( ANDROID ) )
#define ANDROID ( 1 )
#elif !defined( ANDROID )
#define ANDROID ( 0 )
#endif

#if ( ( defined( __linux__ ) ) && !defined( LINUX ) )
#define LINUX ( 1 )
#elif !defined( LINUX )
#define LINUX ( 0 )
#endif

#if ( ( defined( __APPLE__ ) && defined( __MACH__ ) ) && !defined( OSX ) && !defined( APPLE_WATCH ) )
#define OSX ( 1 )
#elif !defined( OSX )
#define OSX ( 0 )
#endif

// SE - TODO: really?
#if !( defined( WP ) )
#if defined( WINAPI_FAMILY ) && ( WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP )
#define WP ( 1 )
#else
#define WP ( 0 )
#endif
#endif

#if WIN
#pragma warning( disable : 4451 ) // some windows universal bullshit about marshalling and refs
#pragma warning( disable : 4514 ) // unused inline function
#pragma warning( disable : 4626 ) // operator = was implicitly deleted (in two minds about this, but its a nuisance, and we know about this...)
#pragma warning( disable : 4710 ) // function marked inline was not inlined
#pragma warning( disable : 4714 ) // function marked for forced inlining was not inlined
#pragma warning( disable : 4820 ) // padding for C struct layout rules was added (how the fuck is that a warning?!?)
#pragma warning( disable : 5027 ) // the move flavour of operator = was implicitly deleted (in two minds about this, but its a nuisance, and we know about this...)
#endif

// SE: not sure this is the best place for this...
#if !( defined( HACKILY_REMOVE_STB_WARNINGS ) )
#define HACKILY_REMOVE_STB_WARNINGS ( 1 ) // should that be zero? i don't like warnings from third party stuff...
#endif

#if WIN

static const char* const kszPlatformName = "Windows Desktop 32-bit";

#elif WINRT

static const char* const kszPlatformName = "Windows 8 Metro";

#elif IOS

{'fraction_non_alphanumeric': 0.1315319908233495, 'fraction_numerical': 0.0262554167728779, 'mean_word_length': 3.791208791208791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5352393', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1348, 'n_words': 509}