1 /* @(#)locale.h 1.2 09/05/24 Copyright 2009 J. Schilling */ 2 /* 3 * Copyright (c) 2009 J. Schilling 4 */ 5 /* 6 * The contents of this file are subject to the terms of the 7 * Common Development and Distribution License, Version 1.0 only 8 * (the "License"). You may not use this file except in compliance 9 * with the License. 10 * 11 * See the file CDDL.Schily.txt in this distribution for details. 12 * A copy of the CDDL is also available via the Internet at 13 * http://www.opensource.org/licenses/cddl1.txt 14 * 15 * When distributing Covered Code, include this CDDL HEADER in each 16 * file and include the License file CDDL.Schily.txt from this distribution. 17 */ 18 19 #ifndef _SCHILY_LOCALE_H 20 #define _SCHILY_LOCALE_H 21 22 #ifndef _SCHILY_MCONFIG_H 23 #include <schily/mconfig.h> 24 #endif 25 26 #ifdef HAVE_LOCALE_H 27 #ifndef _INCL_LOCALE_H 28 #include <locale.h> /* LC_* definitions */ 29 #define _INCL_LOCALE_H 30 #endif 31 #ifndef USE_LOCALE 32 #define USE_LOCALE 33 #endif 34 #else 35 #undef USE_LOCALE 36 #endif 37 38 #ifndef HAVE_SETLOCALE 39 #undef USE_LOCALE 40 #endif 41 42 #ifdef NO_LOCALE 43 #undef USE_LOCALE 44 #endif 45 46 #ifndef USE_LOCALE 47 #undef setlocale 48 #define setlocale(n, s) ((void *)0) 49 #endif 50 51 52 #endif /* _SCHILY_LOCALE_H */ 53