/rusxmms/librcc

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/librcc

« back to all changes in this revision

Viewing changes to src/rcclocale.c

  • Committer: Suren A. Chilingaryan
  • Date: 2010-07-16 07:58:26 UTC
  • Revision ID: csa@dside.dyndns.org-20100716075826-4rvnh4iccqrqsdfj
Windows fixes and CMake scripts to build under Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <stdio.h>
21
21
#include <stdlib.h>
 
22
#include <locale.h>
 
23
 
22
24
#include <string.h>
23
 
#include <locale.h>
 
25
#ifdef HAVE_STRINGS_H
 
26
# include <strings.h>
 
27
#endif /* HAVE_STRINGS_H */
 
28
 
24
29
 
25
30
#include "../config.h"
26
31
 
35
40
#include "rccconfig.h"
36
41
 
37
42
int rccLocaleGetClassByName(const char *locale) {
 
43
#ifdef LC_CTYPE
38
44
    if (!locale) return LC_CTYPE;
39
 
 
 
45
    
40
46
    if (!strcmp(locale, "LC_CTYPE")) return LC_CTYPE;
 
47
#endif /* LC_CTYPE */
 
48
#ifdef LC_MESSAGES
41
49
    if (!strcmp(locale, "LC_MESSAGES")) return LC_MESSAGES;
 
50
#endif /* LC_MESSAGES */
 
51
#ifdef LC_COLLATE
42
52
    if (!strcmp(locale, "LC_COLLATE")) return LC_COLLATE;
 
53
#endif /* LC_COLLATE */
43
54
/*
44
55
    if (!strcmp(locale, "LC_ALL")) return LC_ALL;
45
56
    if (!strcmp(locale, "LC_NUMERIC")) return LC_NUMERIC;