Optional Two-phase heap tracing
[hiphop-php.git] / hphp / util / locale-portability.h
blobdb3237b94ee1e415f0b7cac5899d6367ae50db4f
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
16 #ifndef incl_HPHP_LOCALE_PORTABILITY_H_
17 #define incl_HPHP_LOCALE_PORTABILITY_H_
19 #include <locale.h>
21 #ifdef _MSC_VER
22 typedef _locale_t locale_t;
24 #define LC_ALL_MASK LC_ALL
25 #define LC_COLLATE_MASK LC_COLLATE
26 #define LC_CTYPE_MASK LC_CTYPE
27 #define LC_MONETARY_MASK LC_MONETARY
28 #define LC_NUMERIC_MASK LC_NUMERIC
29 #define LC_TIME_MASK LC_TIME
31 inline locale_t _current_locale() { return _get_current_locale(); }
32 #else
33 #include <langinfo.h>
34 #endif
36 #endif