diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-10 13:42:42 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-10 13:42:42 -0200 |
| commit | 81ecaf6178aaf6349260156a254782455cd024cb (patch) | |
| tree | 01f57bc490593bdf0715cfbefe0737d2f4e32981 | |
| parent | 27ab59bc16ab5da69c60dba220124072a6e0d774 (diff) | |
| download | lua-81ecaf6178aaf6349260156a254782455cd024cb.tar.gz lua-81ecaf6178aaf6349260156a254782455cd024cb.tar.bz2 lua-81ecaf6178aaf6349260156a254782455cd024cb.zip | |
new specifiers in 'strftime' are defined in C99 (not Posix)
| -rw-r--r-- | loslib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loslib.c,v 1.51 2014/11/02 19:19:04 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.52 2014/11/02 19:33:33 roberto Exp roberto $ |
| 3 | ** Standard Operating System library | 3 | ** Standard Operating System library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -27,9 +27,9 @@ | |||
| 27 | ** list of valid conversion specifiers for the 'strftime' function | 27 | ** list of valid conversion specifiers for the 'strftime' function |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #if !defined(LUA_USE_POSIX) | 30 | #if defined(LUA_USE_C89) |
| 31 | #define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" } | 31 | #define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" } |
| 32 | #else | 32 | #else /* C99 specification */ |
| 33 | #define LUA_STRFTIMEOPTIONS \ | 33 | #define LUA_STRFTIMEOPTIONS \ |
| 34 | { "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \ | 34 | { "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \ |
| 35 | "E", "cCxXyY", \ | 35 | "E", "cCxXyY", \ |
