aboutsummaryrefslogtreecommitdiff
path: root/loslib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-10 13:42:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-10 13:42:42 -0200
commit81ecaf6178aaf6349260156a254782455cd024cb (patch)
tree01f57bc490593bdf0715cfbefe0737d2f4e32981 /loslib.c
parent27ab59bc16ab5da69c60dba220124072a6e0d774 (diff)
downloadlua-81ecaf6178aaf6349260156a254782455cd024cb.tar.gz
lua-81ecaf6178aaf6349260156a254782455cd024cb.tar.bz2
lua-81ecaf6178aaf6349260156a254782455cd024cb.zip
new specifiers in 'strftime' are defined in C99 (not Posix)
Diffstat (limited to 'loslib.c')
-rw-r--r--loslib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loslib.c b/loslib.c
index 8a59b699..a79119cb 100644
--- a/loslib.c
+++ b/loslib.c
@@ -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", \