diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-07-02 15:45:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-07-02 15:45:09 -0300 |
| commit | 1a172117070d793d73cdcad5b3efd75ef7dbc728 (patch) | |
| tree | d547061aa33b83314c7d8abaccb1dc1a0b3a7fb6 | |
| parent | d56e3a64817fec16b8bcb779515d87ebaed1fcdf (diff) | |
| download | lua-1a172117070d793d73cdcad5b3efd75ef7dbc728.tar.gz lua-1a172117070d793d73cdcad5b3efd75ef7dbc728.tar.bz2 lua-1a172117070d793d73cdcad5b3efd75ef7dbc728.zip | |
auxliar support for "locale" (to avoid portability problems)
| -rw-r--r-- | lualoc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lualoc.h b/lualoc.h new file mode 100644 index 00000000..37993a31 --- /dev/null +++ b/lualoc.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | ** lualoc.h | ||
| 3 | ** TecCGraf - PUC-Rio | ||
| 4 | ** $Id: $ | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef lualoc_h | ||
| 8 | #define lualoc_h | ||
| 9 | |||
| 10 | #ifndef OLD_ANSI | ||
| 11 | #include <locale.h> | ||
| 12 | #else | ||
| 13 | #define strcoll(a,b) strcmp(a,b) | ||
| 14 | #define setlocale(a,b) 0 | ||
| 15 | #define LC_ALL 0 | ||
| 16 | #define LC_COLLATE 0 | ||
| 17 | #define LC_CTYPE 0 | ||
| 18 | #define LC_MONETARY 0 | ||
| 19 | #define LC_NUMERIC 0 | ||
| 20 | #define LC_TIME 0 | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #endif | ||
