All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala-native.locale.c Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version
#if defined(SCALANATIVE_COMPILE_ALWAYS) || defined(__SCALANATIVE_POSIX_LOCALE)
#ifdef _WIN32
// No Windows support
#else
#if !(defined __STDC_VERSION__) || (__STDC_VERSION__ < 201112L)
#ifndef SCALANATIVE_SUPPRESS_STRUCT_CHECK_WARNING
#warning "Size and order of C structures are not checked when -std < c11."
#endif
#else // POSIX
#include 
#include 

#ifdef __APPLE__
#include 
#endif // __APPLE__

// Symbolic constants

locale_t scalanative_lc_global_locale() { return LC_GLOBAL_LOCALE; }

int scalanative_lc_messages() { return LC_MESSAGES; }

int scalanative_lc_all_mask() { return (1 << LC_ALL); }

int scalanative_lc_collate_mask() { return (1 << LC_COLLATE); }

int scalanative_lc_ctype_mask() { return (1 << LC_CTYPE); }

int scalanative_lc_monetary_mask() { return (1 << LC_MONETARY); }

int scalanative_lc_messages_mask() { return (1 << LC_MESSAGES); }

int scalanative_lc_numeric_mask() { return (1 << LC_NUMERIC); }

int scalanative_lc_time_mask() { return (1 << LC_TIME); }

#endif // POSIX
#endif // ! _WIN32
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy