new specifiers in 'strftime' are defined in C99 (not Posix)
This commit is contained in:
6
loslib.c
6
loslib.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: loslib.c,v 1.51 2014/11/02 19:19:04 roberto Exp roberto $
|
** $Id: loslib.c,v 1.52 2014/11/02 19:33:33 roberto Exp roberto $
|
||||||
** Standard Operating System library
|
** Standard Operating System library
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
** list of valid conversion specifiers for the 'strftime' function
|
** list of valid conversion specifiers for the 'strftime' function
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(LUA_USE_POSIX)
|
#if defined(LUA_USE_C89)
|
||||||
#define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" }
|
#define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" }
|
||||||
#else
|
#else /* C99 specification */
|
||||||
#define LUA_STRFTIMEOPTIONS \
|
#define LUA_STRFTIMEOPTIONS \
|
||||||
{ "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \
|
{ "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \
|
||||||
"E", "cCxXyY", \
|
"E", "cCxXyY", \
|
||||||
|
|||||||
Reference in New Issue
Block a user